21 July 2019, 22:41 | #1 |
Junior Member
|
Using keyboard to trigger sample replay?
Is it possible to have a sample play by pressing a defined key on the keyboard?
I am no programmer, only ever messed a little bit with Amos, but would like to have 10 samples loaded in a sample bank. Then trigger each on with the function keys. Can somebody please point me in the right direction? Tia. |
22 July 2019, 14:32 | #2 |
Registered User
Join Date: Feb 2017
Location: Oslo
Posts: 90
|
This code could do as a starting point:
Code:
Print "Press ESCAPE to quit" Repeat For KEY=80 To 89 If Key State(KEY) Print "F"+Str$(KEY-79)-" " While Key State(KEY) : Wend End If Next KEY Until Key State(69) |
24 July 2019, 11:33 | #3 |
Junior Member
|
Thanks
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, 14:22 | #4 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
I guess one of the Amiga Drumcomputer software can do this. A simple DOS or ARexx Script could do this as well (e.g. using keypressed from Aminet). The AmigaOS commodity FKey is another alternative.
|
24 July 2019, 16:10 | #5 |
Registered User
Join Date: Feb 2017
Location: Oslo
Posts: 90
|
Here is a more or less complete guide for how to go about making such a program in AMOS Professional, it's not much work really but it might take some time to figure out each step since you're new to the language.
Samples: Create a sample bank [Open Sample Bank Maker from top menu] Load sample bank and play a sample [Use Load BANKNAME$ to load the bank. Find sample commands in the Audio section of Help; press F5 while the cursor is on an empty line to open Help] Trigger the samples using the keyboard [Read function keys with Key State] Picture: Load picture [Screen Open ..., then Load Iff ... ] |
24 July 2019, 17:22 | #6 | |
Junior Member
|
Quote:
I am still trying to hunt all of my amos stuff down, been a bit of a slog as I have amassed so much stuff, burnt to cdr's and dumped on hard drives over the years. Thanks everyone for the help/pointers |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
Sample and song ID | trebor74 | request.Music | 12 | 17 May 2013 23:06 |
|
|