English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 24 July 2019, 11:31   #1
ElectroBlaster
Junior Member
 
ElectroBlaster's Avatar
 
Join Date: Mar 2002
Location: Exeter, Devon, UK
Age: 49
Posts: 1,708
Send a message via ICQ to ElectroBlaster
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).
ElectroBlaster is offline  
Old 24 July 2019, 12:10   #2
Daedalus
Registered User
 
Daedalus's Avatar
 
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.
Daedalus is offline  
Old 26 May 2020, 21:14   #3
Nightshft
Registered User
 
Nightshft's Avatar
 
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.
Nightshft 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
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

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 23:08.

Top

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