English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 21 July 2019, 22:41   #1
ElectroBlaster
Junior Member
ElectroBlaster's Avatar
 
Join Date: Mar 2002
Location: Exeter, Devon, UK
Age: 45
Posts: 1,488
Send a message via ICQ to ElectroBlaster
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.
ElectroBlaster is offline  
Old 22 July 2019, 14:32   #2
adrazar
Registered User

 
Join Date: Feb 2017
Location: Oslo
Posts: 48
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)
adrazar is offline  
Old 24 July 2019, 11:33   #3
ElectroBlaster
Junior Member
ElectroBlaster's Avatar
 
Join Date: Mar 2002
Location: Exeter, Devon, UK
Age: 45
Posts: 1,488
Send a message via ICQ to ElectroBlaster
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).
ElectroBlaster is offline  
Old 24 July 2019, 14:22   #4
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,317
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.
daxb is offline  
Old 24 July 2019, 16:10   #5
adrazar
Registered User

 
Join Date: Feb 2017
Location: Oslo
Posts: 48
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 ... ]
adrazar is offline  
Old 24 July 2019, 17:22   #6
ElectroBlaster
Junior Member
ElectroBlaster's Avatar
 
Join Date: Mar 2002
Location: Exeter, Devon, UK
Age: 45
Posts: 1,488
Send a message via ICQ to ElectroBlaster
Quote:
Originally Posted by adrazar View Post
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 ... ]
This looks like what I am trying to make! I can make sample banks and I can display a picture! I dabbled with amos many many years ago. It was around the time when Amiga Format and C U Amiga gave Amos away for free.

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
ElectroBlaster is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06509 seconds with 15 queries