Sound Loop player
The sound loop player is a config player that's used to control sound loop sets (used by sound loop audio tracks). (This player is part of the MPF media controller and only available if you're using MPF-MC for your media controller.)
Examples:
sound_loop_player:
play_basic_beat:
loops:
action: play
sound_loop_set: basic_beat
timing: loop_end
add_hi_hats:
loops:
action: play_layer
layer: 1
timing: loop_end
stop_hi_hats:
loops:
action: stop_looping_layer
layer: 1
add_snare:
loops:
action: play_layer
fade_in: 2s
layer: 2
timing: now
add_claps:
loops:
action: play_layer
layer: 3
timing: loop_end
Basic usage:
sound_loop_player:
<triggering_event_name>:
<sound_loop track name>:
action: <action name>
<optional settings>
<triggering_event_name>:
<sound_loop track name>:
action: <action name>
<optional settings>
Usage in config files
In config files, the sound player is used via the sound_loop_player:
section. Event names that will trigger sound actions are nested
sub-headings and sound_loop_set names are either listed as nested
sub-headings below that.
Usage in shows
In shows, the sound player is used via the sounds_loop_sets:
section
of a step.
Optional settings
Additional information may be found in the sound_loop_player configuration reference documentation.
Something missing or wrong? You can fix it!
This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?
Please help us! You can fix it yourself and be an official "open source" contributor!
It's easy! See our Beginner's guide to editing the docs.
Page navigation via the keyboard: < >
You can navigate this site via the keyboard. There are two modes:
General navigation, when search is not focused:
- F , S , / : open search dialog
- P , , : go to previous page
- N , . : go to next page
While using the search function:
- Down , Up : select next / previous result
- Esc , Tab : close search
- Enter : go to highlighted page in the results