hikkaku 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocks/index.d.mts +149 -1
- package/blocks/index.mjs +177 -1
- package/package.json +1 -1
package/blocks/index.d.mts
CHANGED
|
@@ -1394,6 +1394,154 @@ declare const getY: () => HikkakuBlock;
|
|
|
1394
1394
|
*/
|
|
1395
1395
|
declare const getDirection: () => HikkakuBlock;
|
|
1396
1396
|
//#endregion
|
|
1397
|
+
//#region src/blocks/music.d.ts
|
|
1398
|
+
/**
|
|
1399
|
+
* Plays drum for beats.
|
|
1400
|
+
*
|
|
1401
|
+
* Input: `drum`, `beats`.
|
|
1402
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1403
|
+
*
|
|
1404
|
+
* @param drum See function signature for accepted input values.
|
|
1405
|
+
* @param beats See function signature for accepted input values.
|
|
1406
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1407
|
+
* @example
|
|
1408
|
+
* ```ts
|
|
1409
|
+
* import { playDrumForBeats } from 'hikkaku/blocks'
|
|
1410
|
+
*
|
|
1411
|
+
* playDrumForBeats(1, 0.25)
|
|
1412
|
+
* ```
|
|
1413
|
+
*/
|
|
1414
|
+
declare const playDrumForBeats: (drum: PrimitiveSource<number>, beats: PrimitiveSource<number>) => HikkakuBlock;
|
|
1415
|
+
/**
|
|
1416
|
+
* Plays drum for beats with MIDI drum mapping.
|
|
1417
|
+
*
|
|
1418
|
+
* Input: `drum`, `beats`.
|
|
1419
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1420
|
+
*
|
|
1421
|
+
* @param drum See function signature for accepted input values.
|
|
1422
|
+
* @param beats See function signature for accepted input values.
|
|
1423
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1424
|
+
* @example
|
|
1425
|
+
* ```ts
|
|
1426
|
+
* import { midiPlayDrumForBeats } from 'hikkaku/blocks'
|
|
1427
|
+
*
|
|
1428
|
+
* midiPlayDrumForBeats(36, 0.25)
|
|
1429
|
+
* ```
|
|
1430
|
+
*/
|
|
1431
|
+
declare const midiPlayDrumForBeats: (drum: PrimitiveSource<number>, beats: PrimitiveSource<number>) => HikkakuBlock;
|
|
1432
|
+
/**
|
|
1433
|
+
* Rests for beats.
|
|
1434
|
+
*
|
|
1435
|
+
* Input: `beats`.
|
|
1436
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1437
|
+
*
|
|
1438
|
+
* @param beats See function signature for accepted input values.
|
|
1439
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1440
|
+
* @example
|
|
1441
|
+
* ```ts
|
|
1442
|
+
* import { restForBeats } from 'hikkaku/blocks'
|
|
1443
|
+
*
|
|
1444
|
+
* restForBeats(0.25)
|
|
1445
|
+
* ```
|
|
1446
|
+
*/
|
|
1447
|
+
declare const restForBeats: (beats: PrimitiveSource<number>) => HikkakuBlock;
|
|
1448
|
+
/**
|
|
1449
|
+
* Plays note for beats.
|
|
1450
|
+
*
|
|
1451
|
+
* Input: `note`, `beats`.
|
|
1452
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1453
|
+
*
|
|
1454
|
+
* @param note See function signature for accepted input values.
|
|
1455
|
+
* @param beats See function signature for accepted input values.
|
|
1456
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1457
|
+
* @example
|
|
1458
|
+
* ```ts
|
|
1459
|
+
* import { playNoteForBeats } from 'hikkaku/blocks'
|
|
1460
|
+
*
|
|
1461
|
+
* playNoteForBeats(60, 0.25)
|
|
1462
|
+
* ```
|
|
1463
|
+
*/
|
|
1464
|
+
declare const playNoteForBeats: (note: PrimitiveSource<number>, beats: PrimitiveSource<number>) => HikkakuBlock;
|
|
1465
|
+
/**
|
|
1466
|
+
* Sets instrument.
|
|
1467
|
+
*
|
|
1468
|
+
* Input: `instrument`.
|
|
1469
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1470
|
+
*
|
|
1471
|
+
* @param instrument See function signature for accepted input values.
|
|
1472
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1473
|
+
* @example
|
|
1474
|
+
* ```ts
|
|
1475
|
+
* import { setInstrument } from 'hikkaku/blocks'
|
|
1476
|
+
*
|
|
1477
|
+
* setInstrument(1)
|
|
1478
|
+
* ```
|
|
1479
|
+
*/
|
|
1480
|
+
declare const setInstrument: (instrument: PrimitiveSource<number>) => HikkakuBlock;
|
|
1481
|
+
/**
|
|
1482
|
+
* Sets instrument with MIDI instrument mapping.
|
|
1483
|
+
*
|
|
1484
|
+
* Input: `instrument`.
|
|
1485
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1486
|
+
*
|
|
1487
|
+
* @param instrument See function signature for accepted input values.
|
|
1488
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1489
|
+
* @example
|
|
1490
|
+
* ```ts
|
|
1491
|
+
* import { midiSetInstrument } from 'hikkaku/blocks'
|
|
1492
|
+
*
|
|
1493
|
+
* midiSetInstrument(1)
|
|
1494
|
+
* ```
|
|
1495
|
+
*/
|
|
1496
|
+
declare const midiSetInstrument: (instrument: PrimitiveSource<number>) => HikkakuBlock;
|
|
1497
|
+
/**
|
|
1498
|
+
* Sets tempo.
|
|
1499
|
+
*
|
|
1500
|
+
* Input: `tempo`.
|
|
1501
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1502
|
+
*
|
|
1503
|
+
* @param tempo See function signature for accepted input values.
|
|
1504
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1505
|
+
* @example
|
|
1506
|
+
* ```ts
|
|
1507
|
+
* import { setTempo } from 'hikkaku/blocks'
|
|
1508
|
+
*
|
|
1509
|
+
* setTempo(60)
|
|
1510
|
+
* ```
|
|
1511
|
+
*/
|
|
1512
|
+
declare const setTempo: (tempo: PrimitiveSource<number>) => HikkakuBlock;
|
|
1513
|
+
/**
|
|
1514
|
+
* Changes tempo.
|
|
1515
|
+
*
|
|
1516
|
+
* Input: `tempo`.
|
|
1517
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1518
|
+
*
|
|
1519
|
+
* @param tempo See function signature for accepted input values.
|
|
1520
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1521
|
+
* @example
|
|
1522
|
+
* ```ts
|
|
1523
|
+
* import { changeTempo } from 'hikkaku/blocks'
|
|
1524
|
+
*
|
|
1525
|
+
* changeTempo(20)
|
|
1526
|
+
* ```
|
|
1527
|
+
*/
|
|
1528
|
+
declare const changeTempo: (tempo: PrimitiveSource<number>) => HikkakuBlock;
|
|
1529
|
+
/**
|
|
1530
|
+
* Returns tempo.
|
|
1531
|
+
*
|
|
1532
|
+
* Input: none.
|
|
1533
|
+
* Output: Scratch reporter block definition that can be used as an input value in other blocks.
|
|
1534
|
+
*
|
|
1535
|
+
* @returns Scratch reporter block definition that can be used as an input value in other blocks.
|
|
1536
|
+
* @example
|
|
1537
|
+
* ```ts
|
|
1538
|
+
* import { getTempo } from 'hikkaku/blocks'
|
|
1539
|
+
*
|
|
1540
|
+
* getTempo()
|
|
1541
|
+
* ```
|
|
1542
|
+
*/
|
|
1543
|
+
declare const getTempo: () => HikkakuBlock;
|
|
1544
|
+
//#endregion
|
|
1397
1545
|
//#region src/blocks/operator.d.ts
|
|
1398
1546
|
/**
|
|
1399
1547
|
* Addition.
|
|
@@ -2556,4 +2704,4 @@ declare const changeVolumeBy: (value: PrimitiveSource<number>) => HikkakuBlock;
|
|
|
2556
2704
|
*/
|
|
2557
2705
|
declare const getVolume: () => HikkakuBlock;
|
|
2558
2706
|
//#endregion
|
|
2559
|
-
export { CREATE_CLONE_MYSELF, CurrentMenu, DragMode, ForwardBackward, FrontBack, ListIndex, LookEffect, MathOpOperator, NumberName, PenColorParam, ProcedureArgumentDefault, ProcedureBooleanReference, ProcedureCallInput, ProcedureDefinition, ProcedureDefinitionReference, ProcedureProc, ProcedureProcBoolean, ProcedureProcLabel, ProcedureProcStringOrNumber, ProcedureReference, ProcedureReferenceBase, ProcedureStringOrNumberReference, SoundEffect, StopOption, add, addToList, allAtOnce, and, argumentReporterBoolean, argumentReporterStringNumber, askAndWait, broadcast, broadcastAndWait, callProcedure, changeLooksEffectBy, changePenColorParamBy, changePenHueBy, changePenShadeBy, changePenSizeBy, changeSizeBy, changeSoundEffectBy, changeVariableBy, changeVolumeBy, changeXBy, changeYBy, clear, clearCounter, clearEffects, clearGraphicEffects, colorTouchingColor, contains, controlStartAsClone, createClone, current, daysSince2000, defineProcedure, deleteAllOfList, deleteOfList, deleteThisClone, distanceTo, divide, equals, eraseAll, forEach, forever, getAnswer, getAttributeOf, getBackdropNumberName, getCostumeNumberName, getCounter, getDirection, getItemNumOfList, getItemOfList, getKeyPressed, getListContents, getLoudness, getMouseDown, getMouseX, getMouseY, getSize, getTimer, getUsername, getVariable, getVolume, getX, getY, glide, glideTo, goForwardBackwardLayers, goTo, goToFrontBack, gotoXY, gt, hide, hideList, hideVariable, ifElse, ifOnEdgeBounce, ifThen, incrCounter, insertAtList, isLoud, join, length, lengthOfList, letterOf, listContainsItem, lt, match, mathop, mod, moveSteps, multiply, nextBackdrop, nextCostume, not, or, penDown, penUp, playSound, playSoundUntilDone, pointInDirection, pointTowards, procedureBoolean, procedureLabel, procedureStringOrNumber, random, repeat, repeatUntil, repeatWhile, replaceItemOfList, resetTimer, round, say, sayForSecs, setDragMode, setLooksEffectTo, setPenColorParamTo, setPenColorTo, setPenColorToColor, setPenHueToNumber, setPenShadeToNumber, setPenSizeTo, setRotationStyle, setSizeTo, setSoundEffectTo, setVariableTo, setVolumeTo, setX, setY, show, showList, showVariable, stamp, stop, stopAllSounds, subtract, switchBackdropTo, switchBackdropToAndWait, switchCostumeTo, think, thinkForSecs, touchingColor, touchingObject, turnLeft, turnRight, wait, waitUntil, whenBackdropSwitchesTo, whenBroadcastReceived, whenFlagClicked, whenGreaterThan, whenKeyPressed, whenStageClicked, whenThisSpriteClicked, whenTouchingObject };
|
|
2707
|
+
export { CREATE_CLONE_MYSELF, CurrentMenu, DragMode, ForwardBackward, FrontBack, ListIndex, LookEffect, MathOpOperator, NumberName, PenColorParam, ProcedureArgumentDefault, ProcedureBooleanReference, ProcedureCallInput, ProcedureDefinition, ProcedureDefinitionReference, ProcedureProc, ProcedureProcBoolean, ProcedureProcLabel, ProcedureProcStringOrNumber, ProcedureReference, ProcedureReferenceBase, ProcedureStringOrNumberReference, SoundEffect, StopOption, add, addToList, allAtOnce, and, argumentReporterBoolean, argumentReporterStringNumber, askAndWait, broadcast, broadcastAndWait, callProcedure, changeLooksEffectBy, changePenColorParamBy, changePenHueBy, changePenShadeBy, changePenSizeBy, changeSizeBy, changeSoundEffectBy, changeTempo, changeVariableBy, changeVolumeBy, changeXBy, changeYBy, clear, clearCounter, clearEffects, clearGraphicEffects, colorTouchingColor, contains, controlStartAsClone, createClone, current, daysSince2000, defineProcedure, deleteAllOfList, deleteOfList, deleteThisClone, distanceTo, divide, equals, eraseAll, forEach, forever, getAnswer, getAttributeOf, getBackdropNumberName, getCostumeNumberName, getCounter, getDirection, getItemNumOfList, getItemOfList, getKeyPressed, getListContents, getLoudness, getMouseDown, getMouseX, getMouseY, getSize, getTempo, getTimer, getUsername, getVariable, getVolume, getX, getY, glide, glideTo, goForwardBackwardLayers, goTo, goToFrontBack, gotoXY, gt, hide, hideList, hideVariable, ifElse, ifOnEdgeBounce, ifThen, incrCounter, insertAtList, isLoud, join, length, lengthOfList, letterOf, listContainsItem, lt, match, mathop, midiPlayDrumForBeats, midiSetInstrument, mod, moveSteps, multiply, nextBackdrop, nextCostume, not, or, penDown, penUp, playDrumForBeats, playNoteForBeats, playSound, playSoundUntilDone, pointInDirection, pointTowards, procedureBoolean, procedureLabel, procedureStringOrNumber, random, repeat, repeatUntil, repeatWhile, replaceItemOfList, resetTimer, restForBeats, round, say, sayForSecs, setDragMode, setInstrument, setLooksEffectTo, setPenColorParamTo, setPenColorTo, setPenColorToColor, setPenHueToNumber, setPenShadeToNumber, setPenSizeTo, setRotationStyle, setSizeTo, setSoundEffectTo, setTempo, setVariableTo, setVolumeTo, setX, setY, show, showList, showVariable, stamp, stop, stopAllSounds, subtract, switchBackdropTo, switchBackdropToAndWait, switchCostumeTo, think, thinkForSecs, touchingColor, touchingObject, turnLeft, turnRight, wait, waitUntil, whenBackdropSwitchesTo, whenBroadcastReceived, whenFlagClicked, whenGreaterThan, whenKeyPressed, whenStageClicked, whenThisSpriteClicked, whenTouchingObject };
|
package/blocks/index.mjs
CHANGED
|
@@ -1703,6 +1703,182 @@ const getDirection = () => {
|
|
|
1703
1703
|
return valueBlock("motion_direction", {});
|
|
1704
1704
|
};
|
|
1705
1705
|
|
|
1706
|
+
//#endregion
|
|
1707
|
+
//#region src/blocks/music.ts
|
|
1708
|
+
/**
|
|
1709
|
+
* Plays drum for beats.
|
|
1710
|
+
*
|
|
1711
|
+
* Input: `drum`, `beats`.
|
|
1712
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1713
|
+
*
|
|
1714
|
+
* @param drum See function signature for accepted input values.
|
|
1715
|
+
* @param beats See function signature for accepted input values.
|
|
1716
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1717
|
+
* @example
|
|
1718
|
+
* ```ts
|
|
1719
|
+
* import { playDrumForBeats } from 'hikkaku/blocks'
|
|
1720
|
+
*
|
|
1721
|
+
* playDrumForBeats(1, 0.25)
|
|
1722
|
+
* ```
|
|
1723
|
+
*/
|
|
1724
|
+
const playDrumForBeats = (drum, beats) => {
|
|
1725
|
+
return block("music_playDrumForBeats", { inputs: {
|
|
1726
|
+
DRUM: fromPrimitiveSource(drum),
|
|
1727
|
+
BEATS: fromPrimitiveSource(beats)
|
|
1728
|
+
} });
|
|
1729
|
+
};
|
|
1730
|
+
/**
|
|
1731
|
+
* Plays drum for beats with MIDI drum mapping.
|
|
1732
|
+
*
|
|
1733
|
+
* Input: `drum`, `beats`.
|
|
1734
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1735
|
+
*
|
|
1736
|
+
* @param drum See function signature for accepted input values.
|
|
1737
|
+
* @param beats See function signature for accepted input values.
|
|
1738
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1739
|
+
* @example
|
|
1740
|
+
* ```ts
|
|
1741
|
+
* import { midiPlayDrumForBeats } from 'hikkaku/blocks'
|
|
1742
|
+
*
|
|
1743
|
+
* midiPlayDrumForBeats(36, 0.25)
|
|
1744
|
+
* ```
|
|
1745
|
+
*/
|
|
1746
|
+
const midiPlayDrumForBeats = (drum, beats) => {
|
|
1747
|
+
return block("music_midiPlayDrumForBeats", { inputs: {
|
|
1748
|
+
DRUM: fromPrimitiveSource(drum),
|
|
1749
|
+
BEATS: fromPrimitiveSource(beats)
|
|
1750
|
+
} });
|
|
1751
|
+
};
|
|
1752
|
+
/**
|
|
1753
|
+
* Rests for beats.
|
|
1754
|
+
*
|
|
1755
|
+
* Input: `beats`.
|
|
1756
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1757
|
+
*
|
|
1758
|
+
* @param beats See function signature for accepted input values.
|
|
1759
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1760
|
+
* @example
|
|
1761
|
+
* ```ts
|
|
1762
|
+
* import { restForBeats } from 'hikkaku/blocks'
|
|
1763
|
+
*
|
|
1764
|
+
* restForBeats(0.25)
|
|
1765
|
+
* ```
|
|
1766
|
+
*/
|
|
1767
|
+
const restForBeats = (beats) => {
|
|
1768
|
+
return block("music_restForBeats", { inputs: { BEATS: fromPrimitiveSource(beats) } });
|
|
1769
|
+
};
|
|
1770
|
+
/**
|
|
1771
|
+
* Plays note for beats.
|
|
1772
|
+
*
|
|
1773
|
+
* Input: `note`, `beats`.
|
|
1774
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1775
|
+
*
|
|
1776
|
+
* @param note See function signature for accepted input values.
|
|
1777
|
+
* @param beats See function signature for accepted input values.
|
|
1778
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1779
|
+
* @example
|
|
1780
|
+
* ```ts
|
|
1781
|
+
* import { playNoteForBeats } from 'hikkaku/blocks'
|
|
1782
|
+
*
|
|
1783
|
+
* playNoteForBeats(60, 0.25)
|
|
1784
|
+
* ```
|
|
1785
|
+
*/
|
|
1786
|
+
const playNoteForBeats = (note, beats) => {
|
|
1787
|
+
return block("music_playNoteForBeats", { inputs: {
|
|
1788
|
+
NOTE: fromPrimitiveSource(note),
|
|
1789
|
+
BEATS: fromPrimitiveSource(beats)
|
|
1790
|
+
} });
|
|
1791
|
+
};
|
|
1792
|
+
/**
|
|
1793
|
+
* Sets instrument.
|
|
1794
|
+
*
|
|
1795
|
+
* Input: `instrument`.
|
|
1796
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1797
|
+
*
|
|
1798
|
+
* @param instrument See function signature for accepted input values.
|
|
1799
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1800
|
+
* @example
|
|
1801
|
+
* ```ts
|
|
1802
|
+
* import { setInstrument } from 'hikkaku/blocks'
|
|
1803
|
+
*
|
|
1804
|
+
* setInstrument(1)
|
|
1805
|
+
* ```
|
|
1806
|
+
*/
|
|
1807
|
+
const setInstrument = (instrument) => {
|
|
1808
|
+
return block("music_setInstrument", { inputs: { INSTRUMENT: fromPrimitiveSource(instrument) } });
|
|
1809
|
+
};
|
|
1810
|
+
/**
|
|
1811
|
+
* Sets instrument with MIDI instrument mapping.
|
|
1812
|
+
*
|
|
1813
|
+
* Input: `instrument`.
|
|
1814
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1815
|
+
*
|
|
1816
|
+
* @param instrument See function signature for accepted input values.
|
|
1817
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1818
|
+
* @example
|
|
1819
|
+
* ```ts
|
|
1820
|
+
* import { midiSetInstrument } from 'hikkaku/blocks'
|
|
1821
|
+
*
|
|
1822
|
+
* midiSetInstrument(1)
|
|
1823
|
+
* ```
|
|
1824
|
+
*/
|
|
1825
|
+
const midiSetInstrument = (instrument) => {
|
|
1826
|
+
return block("music_midiSetInstrument", { inputs: { INSTRUMENT: fromPrimitiveSource(instrument) } });
|
|
1827
|
+
};
|
|
1828
|
+
/**
|
|
1829
|
+
* Sets tempo.
|
|
1830
|
+
*
|
|
1831
|
+
* Input: `tempo`.
|
|
1832
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1833
|
+
*
|
|
1834
|
+
* @param tempo See function signature for accepted input values.
|
|
1835
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1836
|
+
* @example
|
|
1837
|
+
* ```ts
|
|
1838
|
+
* import { setTempo } from 'hikkaku/blocks'
|
|
1839
|
+
*
|
|
1840
|
+
* setTempo(60)
|
|
1841
|
+
* ```
|
|
1842
|
+
*/
|
|
1843
|
+
const setTempo = (tempo) => {
|
|
1844
|
+
return block("music_setTempo", { inputs: { TEMPO: fromPrimitiveSource(tempo) } });
|
|
1845
|
+
};
|
|
1846
|
+
/**
|
|
1847
|
+
* Changes tempo.
|
|
1848
|
+
*
|
|
1849
|
+
* Input: `tempo`.
|
|
1850
|
+
* Output: Scratch statement block definition that is appended to the current script stack.
|
|
1851
|
+
*
|
|
1852
|
+
* @param tempo See function signature for accepted input values.
|
|
1853
|
+
* @returns Scratch statement block definition that is appended to the current script stack.
|
|
1854
|
+
* @example
|
|
1855
|
+
* ```ts
|
|
1856
|
+
* import { changeTempo } from 'hikkaku/blocks'
|
|
1857
|
+
*
|
|
1858
|
+
* changeTempo(20)
|
|
1859
|
+
* ```
|
|
1860
|
+
*/
|
|
1861
|
+
const changeTempo = (tempo) => {
|
|
1862
|
+
return block("music_changeTempo", { inputs: { TEMPO: fromPrimitiveSource(tempo) } });
|
|
1863
|
+
};
|
|
1864
|
+
/**
|
|
1865
|
+
* Returns tempo.
|
|
1866
|
+
*
|
|
1867
|
+
* Input: none.
|
|
1868
|
+
* Output: Scratch reporter block definition that can be used as an input value in other blocks.
|
|
1869
|
+
*
|
|
1870
|
+
* @returns Scratch reporter block definition that can be used as an input value in other blocks.
|
|
1871
|
+
* @example
|
|
1872
|
+
* ```ts
|
|
1873
|
+
* import { getTempo } from 'hikkaku/blocks'
|
|
1874
|
+
*
|
|
1875
|
+
* getTempo()
|
|
1876
|
+
* ```
|
|
1877
|
+
*/
|
|
1878
|
+
const getTempo = () => {
|
|
1879
|
+
return valueBlock("music_getTempo", {});
|
|
1880
|
+
};
|
|
1881
|
+
|
|
1706
1882
|
//#endregion
|
|
1707
1883
|
//#region src/blocks/operator.ts
|
|
1708
1884
|
/**
|
|
@@ -3119,4 +3295,4 @@ const getVolume = () => {
|
|
|
3119
3295
|
};
|
|
3120
3296
|
|
|
3121
3297
|
//#endregion
|
|
3122
|
-
export { CREATE_CLONE_MYSELF, add, addToList, allAtOnce, and, argumentReporterBoolean, argumentReporterStringNumber, askAndWait, broadcast, broadcastAndWait, callProcedure, changeLooksEffectBy, changePenColorParamBy, changePenHueBy, changePenShadeBy, changePenSizeBy, changeSizeBy, changeSoundEffectBy, changeVariableBy, changeVolumeBy, changeXBy, changeYBy, clear, clearCounter, clearEffects, clearGraphicEffects, colorTouchingColor, contains, controlStartAsClone, createClone, current, daysSince2000, defineProcedure, deleteAllOfList, deleteOfList, deleteThisClone, distanceTo, divide, equals, eraseAll, forEach, forever, getAnswer, getAttributeOf, getBackdropNumberName, getCostumeNumberName, getCounter, getDirection, getItemNumOfList, getItemOfList, getKeyPressed, getListContents, getLoudness, getMouseDown, getMouseX, getMouseY, getSize, getTimer, getUsername, getVariable, getVolume, getX, getY, glide, glideTo, goForwardBackwardLayers, goTo, goToFrontBack, gotoXY, gt, hide, hideList, hideVariable, ifElse, ifOnEdgeBounce, ifThen, incrCounter, insertAtList, isLoud, join, length, lengthOfList, letterOf, listContainsItem, lt, match, mathop, mod, moveSteps, multiply, nextBackdrop, nextCostume, not, or, penDown, penUp, playSound, playSoundUntilDone, pointInDirection, pointTowards, procedureBoolean, procedureLabel, procedureStringOrNumber, random, repeat, repeatUntil, repeatWhile, replaceItemOfList, resetTimer, round, say, sayForSecs, setDragMode, setLooksEffectTo, setPenColorParamTo, setPenColorTo, setPenColorToColor, setPenHueToNumber, setPenShadeToNumber, setPenSizeTo, setRotationStyle, setSizeTo, setSoundEffectTo, setVariableTo, setVolumeTo, setX, setY, show, showList, showVariable, stamp, stop, stopAllSounds, subtract, switchBackdropTo, switchBackdropToAndWait, switchCostumeTo, think, thinkForSecs, touchingColor, touchingObject, turnLeft, turnRight, wait, waitUntil, whenBackdropSwitchesTo, whenBroadcastReceived, whenFlagClicked, whenGreaterThan, whenKeyPressed, whenStageClicked, whenThisSpriteClicked, whenTouchingObject };
|
|
3298
|
+
export { CREATE_CLONE_MYSELF, add, addToList, allAtOnce, and, argumentReporterBoolean, argumentReporterStringNumber, askAndWait, broadcast, broadcastAndWait, callProcedure, changeLooksEffectBy, changePenColorParamBy, changePenHueBy, changePenShadeBy, changePenSizeBy, changeSizeBy, changeSoundEffectBy, changeTempo, changeVariableBy, changeVolumeBy, changeXBy, changeYBy, clear, clearCounter, clearEffects, clearGraphicEffects, colorTouchingColor, contains, controlStartAsClone, createClone, current, daysSince2000, defineProcedure, deleteAllOfList, deleteOfList, deleteThisClone, distanceTo, divide, equals, eraseAll, forEach, forever, getAnswer, getAttributeOf, getBackdropNumberName, getCostumeNumberName, getCounter, getDirection, getItemNumOfList, getItemOfList, getKeyPressed, getListContents, getLoudness, getMouseDown, getMouseX, getMouseY, getSize, getTempo, getTimer, getUsername, getVariable, getVolume, getX, getY, glide, glideTo, goForwardBackwardLayers, goTo, goToFrontBack, gotoXY, gt, hide, hideList, hideVariable, ifElse, ifOnEdgeBounce, ifThen, incrCounter, insertAtList, isLoud, join, length, lengthOfList, letterOf, listContainsItem, lt, match, mathop, midiPlayDrumForBeats, midiSetInstrument, mod, moveSteps, multiply, nextBackdrop, nextCostume, not, or, penDown, penUp, playDrumForBeats, playNoteForBeats, playSound, playSoundUntilDone, pointInDirection, pointTowards, procedureBoolean, procedureLabel, procedureStringOrNumber, random, repeat, repeatUntil, repeatWhile, replaceItemOfList, resetTimer, restForBeats, round, say, sayForSecs, setDragMode, setInstrument, setLooksEffectTo, setPenColorParamTo, setPenColorTo, setPenColorToColor, setPenHueToNumber, setPenShadeToNumber, setPenSizeTo, setRotationStyle, setSizeTo, setSoundEffectTo, setTempo, setVariableTo, setVolumeTo, setX, setY, show, showList, showVariable, stamp, stop, stopAllSounds, subtract, switchBackdropTo, switchBackdropToAndWait, switchCostumeTo, think, thinkForSecs, touchingColor, touchingObject, turnLeft, turnRight, wait, waitUntil, whenBackdropSwitchesTo, whenBroadcastReceived, whenFlagClicked, whenGreaterThan, whenKeyPressed, whenStageClicked, whenThisSpriteClicked, whenTouchingObject };
|