updated help links. fix for #90
This commit is contained in:
parent
786c5f9733
commit
c6f5a8dcc6
@ -159,7 +159,7 @@ namespace music {
|
|||||||
* Change the tempo by the specified amount
|
* Change the tempo by the specified amount
|
||||||
* @param bpm The change in beats per minute to the tempo, eg: 20
|
* @param bpm The change in beats per minute to the tempo, eg: 20
|
||||||
*/
|
*/
|
||||||
//% help=music/tempo weight=39
|
//% help=music/change-tempo weight=39
|
||||||
//% blockId=device_change_tempo block="change tempo by (bpm)|%value" blockGap=8
|
//% blockId=device_change_tempo block="change tempo by (bpm)|%value" blockGap=8
|
||||||
export function changeTempoBy(bpm: number): void {
|
export function changeTempoBy(bpm: number): void {
|
||||||
setTempo(beat(BeatFraction.Whole) + bpm);
|
setTempo(beat(BeatFraction.Whole) + bpm);
|
||||||
@ -169,7 +169,7 @@ namespace music {
|
|||||||
* Sets the tempo to the specified amount
|
* Sets the tempo to the specified amount
|
||||||
* @param bpm The new tempo in beats per minute, eg: 120
|
* @param bpm The new tempo in beats per minute, eg: 120
|
||||||
*/
|
*/
|
||||||
//% help=music/tempo weight=38
|
//% help=music/set-tempo weight=38
|
||||||
//% blockId=device_set_tempo block="set tempo to (bpm)|%value"
|
//% blockId=device_set_tempo block="set tempo to (bpm)|%value"
|
||||||
export function setTempo(bpm: number): void {
|
export function setTempo(bpm: number): void {
|
||||||
init();
|
init();
|
||||||
|
Loading…
Reference in New Issue
Block a user