-
-
Notifications
You must be signed in to change notification settings - Fork 0
music.play_notes
🧩🔊 This is a general-purpose audio-related function.
music.play_notes(notes)
- notes: Notes to play.
Play music notes.
Supported values are:
Notes: C, C#, D, D#, E, F, F#, G, G#, A, A#, B
Voice: Vn, where n is:0, 1 or 2
Octave: On, where n is: 0-9
Volume: Un, where n is: 0-9
Note duration: W, H, Q, I or S
W: Whole,
H: Half,
Q: Quarter
I: Eighth
S: Sixteenth
Inspired by C128 "play" BASIC command:
https://www.commodore.ca/manuals/128_system_guide/sect-07b.htm#7.3.html
This function is used to play music jingles using the AY-3-8910.
Note that you can only control the AY-3-8910 and not the Konami SCC. This is because the Konami SCC is intended to be used exclusively for music, while the AY-3-8910 is for sound effects and noise. It is a design choice.
This function is not meant to be used during gameplay, as it depends on time.sleep to work. It should be used at break times, for example, when opening a chest, when picking up an important item, at the beginning or end of a level, etc.
music.play_notes('SO4GAO5CO4AQO5EIEQDSO4GAO5CO4AQO5DIDQC')
- SDK
- Important system files
The boot.py file
The main.py file
Libraries
- MCU
What is MicroPython?
How to install MicroPython
- Video
TMS9918 compatible VDP parts
TMS9918 VDP display modes
Color palette
Video modes
Video adapters
MGB file format
- Video API
vdp_set_bdcolor
vdp_print
vdp_cls
vdp_mset
vdp_textcolor
vdp_sprite_set_position
vdp_text_wrap
set_write_address
write_byte_to_VRAM
vdp_init
- Audio
Music related troubleshooting
AY-3-8910 compatible PSG parts
How to flash LPC810 or LPC812 MCU
How to flash ATmega8, ATmega48, ATmega88, ATmega168 or ATmega328
AY-3-8910
Konami SCC
WT588D
Clock sources
SoundCortex limitations
VGM file format
WT588D's BUSY output
- Audio API
music.reset
music.load_vgm
music.tick
music.set_vol
music.play_freq
music.play_notes
voice.send_threelines
voice.send_oneline
- Input
PISO shift register compatible gamepad parts
PS2 keyboard scancodes
- Input API
- Memory
Memory related troubleshooting
Video RAM
- Memory API