24 July 2019, 11:31 | #1 |
Junior Member
|
Possible to trigger samples from the keyboard?
I have hardly any clue what I am doing with all this but I really want to
load in a bunch of samples, nothing spectacular, just bog standard 8bit iff's. Then press a key so they playback! thats it. So I would like to have F1 to F10 and each key triggers its own sample, ontop of that a bog standard dpaint drawn screen telling the user what to do! I was sifting through years of accumulated stuff and stumbled upon something a friend wanted to make and it just never happend. The idea was to use the Amiga in a radio show thing he had been asked to do back in 1995. I think we never did find a program that could do the basic thing we wanted. I drew the screen for it, we created the samples. But that was it. If anything exists, even just a code example I should be able to knuckle down and learn how to make this program (I hope lol). |
24 July 2019, 12:10 | #2 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,351
|
What about something as simple as the FKey commodity in conjunction with a play command? It wouldn't need any programming at all...
If you really wanted to do it in Blitz, the system-friendly way to do it is to open a window, wait for keyboard events and then check the resulting event code to get the key that was pressed. You can load samples in advance using LoadSound and play them using Sound. If you're less worried about being system-friendly, just loop and use the Rawstatus command to check each key you're interested in, again using Sound to play a pre-loaded sample. |
26 May 2020, 21:14 | #3 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
If you still want this ElectroBlaster PM me.
When you deliver the picture and samples I could code it for you. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using keyboard to trigger sample replay? | ElectroBlaster | Coders. AMOS | 5 | 24 July 2019 17:22 |
Manually trigger a IRQ7 interrupt | hwetters | support.FS-UAE | 2 | 03 January 2019 14:03 |
Trigger level 7 interrupt | geir | support.FS-UAE | 2 | 15 August 2015 22:45 |
Deuteros: How to "trigger" the pirate event? | adalsgaard | support.Games | 9 | 27 July 2014 21:40 |
A1200 Restoration : Project "Trigger's Broom" | CDTV1991 | Hardware mods | 42 | 01 July 2013 23:01 |
|
|