mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-09 07:15:11 -04:00
Updated API Note (markdown)
parent
62bf76c7eb
commit
71de556e28
@ -5,7 +5,7 @@ Converts a note in string form (e.g. A#4 or Gb3, see below) or a given frequency
|
||||
- `note.freq(n: number or string): number`
|
||||
Converts a note in string form (e.g. A#4) or a given MIDI code into the respective frequency
|
||||
- `note.name(n: number): string`
|
||||
Converts a MIDI value back into a string; if you have a frequency to convert, just use `note.get(note.midi(frequency))`
|
||||
Converts a MIDI value back into a string; if you have a frequency to convert, just use `note.name(note.midi(frequency))`
|
||||
- `note.ticks(n: number): number`
|
||||
Converts note block ticks (0-24) into MIDI code (34-58, respectively) and vice-versa. Useful for use with Note Blocks and OpenComponents
|
||||
- `note.play(tone: string or number,duration: number)`
|
||||
|
Loading…
x
Reference in New Issue
Block a user