Is there an API somewhere that lists all of the EOS functionality?
Or does someone know if its possible to play an audio file directly from an Eval action? I have a 50+ audio files for different metronome speeds and other sounds, and I need to control which one is playing based on variable values. The only way I have found to do this is a massive nested If statement that will be a huge pain to test, and essentially impossible to edit once I copy it dozens of places throughout my script.
If I could have something like the command below where X is a variable value that plays the correct audio file from an Eval action that would be ideal. My only programming experience is a little C when I was in school and without an API I am not sure how to do this.
Sound.get(x".mp3").start();
Thanks!
EDIT:
I found the API here: https://milovana.com/eos/editor/help/ap ... ence#Sound
An inelegant solution to my problem is to use Play actions to create an "Identifier" for each audio clip, and then stop them all in a single eval action. Then they can be played using Sound.get().play(); as shown in the attachment.
Now all I need to know is if Eos supports creating the audio "Identifier" with an Eval action
Play audio file with Eval action?
Play audio file with Eval action?
- Attachments
-
- Screenshot from 2022-07-30 17-48-09.png (37.09 KiB) Viewed 1677 times
Re: Play audio file with Eval action?
Ok, I figured out a slightly different way to so this.
Loading all the files causes them to play over top of each other before they can be muted with Sound.get()stop(), so now I am loading them with the volume set to 0 and then changing it to 1 after the playback has been stopped. This works great on my desktop computer, but crashes when tested on my phone and android tablet.
The total filesize of all the sounds is 43Mb. It seems unlikely that this would exceed the allocated memory limit for the web browser, however when I load the tease on my desktop the system memory usage increased by 1.5Gb and there is a massive temporary spike in processor utilization (see attachment). This is probably causing the crash in the mobile device due to insufficient available memory.
If anyone is willing to help me troubleshoot this I'd be willing to share all files and code (partial snip below to give you an idea of how crazy this is).
I recognize this is really terrible coding, but I dont know how to do it better within the limitations of Eos. Ideally the "audio.play" command would be usable from an Eval action, and I could just load a specific sound when needed. However that does not seem to be the case, so I need to load all possible sounds at the beginning in order to play them when needed in the future.
Code below. Any ideas how to do this differently/in a less resource intensive way so it does not crash on mobile devices?
Loading all the files causes them to play over top of each other before they can be muted with Sound.get()stop(), so now I am loading them with the volume set to 0 and then changing it to 1 after the playback has been stopped. This works great on my desktop computer, but crashes when tested on my phone and android tablet.
The total filesize of all the sounds is 43Mb. It seems unlikely that this would exceed the allocated memory limit for the web browser, however when I load the tease on my desktop the system memory usage increased by 1.5Gb and there is a massive temporary spike in processor utilization (see attachment). This is probably causing the crash in the mobile device due to insufficient available memory.
If anyone is willing to help me troubleshoot this I'd be willing to share all files and code (partial snip below to give you an idea of how crazy this is).
I recognize this is really terrible coding, but I dont know how to do it better within the limitations of Eos. Ideally the "audio.play" command would be usable from an Eval action, and I could just load a specific sound when needed. However that does not seem to be the case, so I need to load all possible sounds at the beginning in order to play them when needed in the future.
Code below. Any ideas how to do this differently/in a less resource intensive way so it does not crash on mobile devices?
Code: Select all
{
"pages": {
"start": [
{
"audio.play": {
"locator": "file:30bpm-1.mp3",
"loops": 0,
"id": "30bpm1",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm1\").stop();\nSound.get('30bpm1').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:30bpm-2.mp3",
"loops": 0,
"id": "30bpm2",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm2\").stop();\nSound.get('30bpm2').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:30bpm-3.mp3",
"loops": 0,
"id": "30bpm3",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm3\").stop();\nSound.get('30bpm3').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:30bpm-4.mp3",
"loops": 0,
"id": "30bpm4",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm4\").stop();\nSound.get('30bpm4').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:30bpm-5.mp3",
"loops": 0,
"id": "30bpm5",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm5\").stop();\nSound.get('30bpm5').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:30bpm-6.mp3",
"loops": 0,
"id": "30bpm6",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm6\").stop();\nSound.get('30bpm6').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:30bpm-7.mp3",
"loops": 0,
"id": "30bpm7",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm7\").stop();\nSound.get('30bpm7').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:30bpm-8.mp3",
"loops": 0,
"id": "30bpm8",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm8\").stop();\nSound.get('30bpm8').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:30bpm-9.mp3",
"loops": 0,
"id": "30bpm9",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm9\").stop();\nSound.get('30bpm9').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:30bpm-10.mp3",
"loops": 0,
"id": "30bpm10",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"30bpm10\").stop();\nSound.get('30bpm10').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-1.mp3",
"loops": 0,
"id": "45bpm1",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm1\").stop();\nSound.get('45bpm1').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-2.mp3",
"loops": 0,
"id": "45bpm2",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm2\").stop();\nSound.get('45bpm2').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-3.mp3",
"loops": 0,
"id": "45bpm3",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm3\").stop();\nSound.get('45bpm3').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-4.mp3",
"loops": 0,
"id": "45bpm4",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm4\").stop();\nSound.get('45bpm4').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-5.mp3",
"loops": 0,
"id": "45bpm5",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm5\").stop();\nSound.get('45bpm5').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-6.mp3",
"loops": 0,
"id": "45bpm6",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm6\").stop();\nSound.get('45bpm6').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-7.mp3",
"loops": 0,
"id": "45bpm7",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm7\").stop();\nSound.get('45bpm7').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-8.mp3",
"loops": 0,
"id": "45bpm8",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm8\").stop();\nSound.get('45bpm8').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-9.mp3",
"loops": 0,
"id": "45bpm9",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm9\").stop();\nSound.get('45bpm9').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:45bpm-10.mp3",
"loops": 0,
"id": "45bpm10",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"45bpm10\").stop();\nSound.get('45bpm10').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-1.mp3",
"loops": 0,
"id": "60bpm1",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm1\").stop();\nSound.get('60bpm1').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-2.mp3",
"loops": 0,
"id": "60bpm2",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm2\").stop();\nSound.get('60bpm2').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-3.mp3",
"loops": 0,
"id": "60bpm3",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm3\").stop();\nSound.get('60bpm3').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-4.mp3",
"loops": 0,
"id": "60bpm4",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm4\").stop();\nSound.get('60bpm4').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-5.mp3",
"loops": 0,
"id": "60bpm5",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm5\").stop();\nSound.get('60bpm5').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-6.mp3",
"loops": 0,
"id": "60bpm6",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm6\").stop();\nSound.get('60bpm6').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-7.mp3",
"loops": 0,
"id": "60bpm7",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm7\").stop();\nSound.get('60bpm7').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-8.mp3",
"loops": 0,
"id": "60bpm8",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm8\").stop();\nSound.get('60bpm8').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-9.mp3",
"loops": 0,
"id": "60bpm9",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm9\").stop();\nSound.get('60bpm9').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:60bpm-10.mp3",
"loops": 0,
"id": "60bpm10",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"60bpm10\").stop();\nSound.get('60bpm10').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-1.mp3",
"loops": 0,
"id": "90bpm1",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm1\").stop();\nSound.get('90bpm1').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-2.mp3",
"loops": 0,
"id": "90bpm2",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm2\").stop();\nSound.get('90bpm2').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-3.mp3",
"loops": 0,
"id": "90bpm3",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm3\").stop();\nSound.get('90bpm3').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-4.mp3",
"loops": 0,
"id": "90bpm4",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm4\").stop();\nSound.get('90bpm4').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-5.mp3",
"loops": 0,
"id": "90bpm5",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm5\").stop();\nSound.get('90bpm5').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-6.mp3",
"loops": 0,
"id": "90bpm6",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm6\").stop();\nSound.get('90bpm6').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-7.mp3",
"loops": 0,
"id": "90bpm7",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm7\").stop();\nSound.get('90bpm7').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-8.mp3",
"loops": 0,
"id": "90bpm8",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm8\").stop();\nSound.get('90bpm8').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-9.mp3",
"loops": 0,
"id": "90bpm9",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm9\").stop();\nSound.get('90bpm9').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:90bpm-10.mp3",
"loops": 0,
"id": "90bpm10",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"90bpm10\").stop();\nSound.get('90bpm10').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-1.mp3",
"loops": 0,
"id": "120bpm1",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm1\").stop();\nSound.get('120bpm1').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-2.mp3",
"loops": 0,
"id": "120bpm2",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm2\").stop();\nSound.get('120bpm2').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-3.mp3",
"loops": 0,
"id": "120bpm3",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm3\").stop();\nSound.get('120bpm3').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-4.mp3",
"loops": 0,
"id": "120bpm4",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm4\").stop();\nSound.get('120bpm4').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-5.mp3",
"loops": 0,
"id": "120bpm5",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm5\").stop();\nSound.get('120bpm5').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-6.mp3",
"loops": 0,
"id": "120bpm6",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm6\").stop();\nSound.get('120bpm6').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-7.mp3",
"loops": 0,
"id": "120bpm7",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm7\").stop();\nSound.get('120bpm7').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-8.mp3",
"loops": 0,
"id": "120bpm8",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm8\").stop();\nSound.get('120bpm8').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-9.mp3",
"loops": 0,
"id": "120bpm9",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm9\").stop();\nSound.get('120bpm9').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:120bpm-10.mp3",
"loops": 0,
"id": "120bpm10",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"120bpm10\").stop();\nSound.get('120bpm10').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-1.mp3",
"loops": 0,
"id": "150bpm1",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm1\").stop();\nSound.get('150bpm1').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-2.mp3",
"loops": 0,
"id": "150bpm2",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm2\").stop();\nSound.get('150bpm2').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-3.mp3",
"loops": 0,
"id": "150bpm3",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm3\").stop();\nSound.get('150bpm3').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-4.mp3",
"loops": 0,
"id": "150bpm4",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm4\").stop();\nSound.get('150bpm4').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-5.mp3",
"loops": 0,
"id": "150bpm5",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm5\").stop();\nSound.get('150bpm5').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-6.mp3",
"loops": 0,
"id": "150bpm6",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm6\").stop();\nSound.get('150bpm6').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-7.mp3",
"loops": 0,
"id": "150bpm7",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm7\").stop();\nSound.get('150bpm7').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-8.mp3",
"loops": 0,
"id": "150bpm8",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm8\").stop();\nSound.get('150bpm8').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-9.mp3",
"loops": 0,
"id": "150bpm9",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm9\").stop();\nSound.get('150bpm9').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:150bpm-10.mp3",
"loops": 0,
"id": "150bpm10",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"150bpm10\").stop();\nSound.get('150bpm10').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-1.mp3",
"loops": 0,
"id": "180bpm1",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm1\").stop();\nSound.get('180bpm1').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-2.mp3",
"loops": 0,
"id": "180bpm2",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm2\").stop();\nSound.get('180bpm2').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-3.mp3",
"loops": 0,
"id": "180bpm3",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm3\").stop();\nSound.get('180bpm3').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-4.mp3",
"loops": 0,
"id": "180bpm4",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm4\").stop();\nSound.get('180bpm4').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-5.mp3",
"loops": 0,
"id": "180bpm5",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm5\").stop();\nSound.get('180bpm5').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-6.mp3",
"loops": 0,
"id": "180bpm6",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm6\").stop();\nSound.get('180bpm6').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-7.mp3",
"loops": 0,
"id": "180bpm7",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm7\").stop();\nSound.get('180bpm7').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-8.mp3",
"loops": 0,
"id": "180bpm8",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm8\").stop();\nSound.get('180bpm8').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-9.mp3",
"loops": 0,
"id": "180bpm9",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm9\").stop();\nSound.get('180bpm9').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:180bpm-10.mp3",
"loops": 0,
"id": "180bpm10",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"180bpm10\").stop();\nSound.get('180bpm10').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-1.mp3",
"loops": 0,
"id": "240bpm1",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm1\").stop();\nSound.get('240bpm1').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-2.mp3",
"loops": 0,
"id": "240bpm2",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm2\").stop();\nSound.get('240bpm2').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-3.mp3",
"loops": 0,
"id": "240bpm3",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm3\").stop();\nSound.get('240bpm3').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-4.mp3",
"loops": 0,
"id": "240bpm4",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm4\").stop();\nSound.get('240bpm4').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-5.mp3",
"loops": 0,
"id": "240bpm5",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm5\").stop();\nSound.get('240bpm5').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-6.mp3",
"loops": 0,
"id": "240bpm6",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm6\").stop();\nSound.get('240bpm6').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-7.mp3",
"loops": 0,
"id": "240bpm7",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm7\").stop();\nSound.get('240bpm7').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-8.mp3",
"loops": 0,
"id": "240bpm8",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm8\").stop();\nSound.get('240bpm8').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-9.mp3",
"loops": 0,
"id": "240bpm9",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm9\").stop();\nSound.get('240bpm9').setVolume(1)"
}
},
{
"audio.play": {
"locator": "file:240bpm-10.mp3",
"loops": 0,
"id": "240bpm10",
"background": true,
"volume": 0
}
},
{
"eval": {
"script": "Sound.get(\"240bpm10\").stop();\nSound.get('240bpm10').setVolume(1)"
}- Attachments
-
- Screenshot from 2022-07-31 17-35-49.png (90.25 KiB) Viewed 1273 times
-
Thamrill
- Explorer At Heart

- Posts: 301
- Joined: Thu Jan 03, 2013 4:55 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: Submissive
Re: Play audio file with Eval action?
As far as I know, that's the only way to do it; Morexis in their Enter the Pony Maze did exactly that with 10 files and it worked; if your tease requires loading too many files, you can spread them out a little bit. Either split them over multiple introductory pages or between multiple say actions

