Skip to content

Commit

Permalink
Slight modification to the language used on the blocks, all instances…
Browse files Browse the repository at this point in the history
… of Hz values now correctly refer to them as frequency
  • Loading branch information
JohnVidler committed May 26, 2022
1 parent 2c2a174 commit 73fc2c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codal-audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ namespace codalAudio {
}

/**
* Set the sample rate for recording, playback, or both
* Set the sample frequency for recording, playback, or both (default)
*
* @param hz The sample rate, in Hz
* @param hz The sample frequency, in Hz
*/
//% block="set sample rate to %hz Hz || for %scope"
//% block="set sample frequency to %hz Hz || for %scope"
//% expandableArgumentMode="enabled"
//% hz.defl=22000
export function setSampleRate(hz: number, scope?: AudioSampleRateScope): void {
Expand Down

0 comments on commit 73fc2c0

Please sign in to comment.