Skip to content

Commit

Permalink
Clarify example code
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaaro authored Feb 10, 2018
1 parent 0d8d594 commit 392cc77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions API.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ from pydub import AudioSegment
sound = AudioSegment.from_file(“sound1.wav”)
samples = sound.get_array_of_samples()

# Example operation on audio data
shifted_samples = np.right_shift(samples, 1)

# now you have to convert back to an array.array
Expand Down

0 comments on commit 392cc77

Please sign in to comment.