Page 1 of 2
Music & Sound Commands?
Posted: Tue Jan 07, 2014 1:36 pm
by ScottieBro
is it me but I don't see where the music & sound commands are?
Any help would be greatly appreciated.
thanks
Re: Music & Sound Commands?
Posted: Tue Jan 07, 2014 3:23 pm
by Mr. Kibernetik
You are right, currently there are no sound and music commands.
But they are planned to be implemented in the future.
By the way, their syntax and functionality is not defined yet. So any ideas and suggestions are welcome!
Re: Music & Sound Commands?
Posted: Wed Jan 08, 2014 9:21 am
by Dutchman
A few suggestions:
AIFF
Apple delivers several sound files on their Macs in the folder 'library>sounds'
They are in the Audio Interchange File Format (AIFF).
See
http://en.wikipedia.org/wiki/Audio_Inte ... ile_Format
It would be nice if we could use these sounds.
As an example I attached a 'submarine'-sound. Play it on your Mac by double-clicking
ADSR
Another proposal is the ADSR ((Attack-Decay-Sustain-Release)) envelope together with a frequency and/or random noise generator. See
http://en.wikipedia.org/wiki/Synthesizer#ADSR_envelope
NOISE with
'colouring'
In the ADSR form an explosion spound is quite easy to describe: random noise with an exponential decay.
A set of low-pass and/or highpass filters would be attractive to 'colour' the noise. Low frequencies are charactristic for explosion sound in the far distance.
MUSIC
I think that the interest of programmers is more in the category of 'sound', especially for games, than for music. The music facility of the 'Basic!'-app is not used on Misofts' forum. Users ask for 'sound' instead.
Re: Music & Sound Commands?
Posted: Wed Jan 08, 2014 9:33 am
by Mr. Kibernetik
Very good.
I want this thread to be a collection of ideas dedicated to music-sound topic.
Also standard MP3 files should be played.
Also MIDI should be supported in some way.
I remember in the days of Commodore 128 (I had one) in that BASIC there was command like PLAY "C4..." and so on where notes were recorded as letters and numbers. As far as I remember, it was quite nice.
Re: Music & Sound Commands?
Posted: Wed Jan 08, 2014 9:37 am
by Mr. Kibernetik
Dutchman wrote:
I tried to attach the file 'Submarine.aiff' but got the messsage "The extension aiff is not allowed."
Therefore I changed the extension to '.txt'. Change it back to '.aiff' for play on your Mac.
I changed Forum settings, now AIFF extension is allowed for attachments.
Re: Music & Sound Commands?
Posted: Wed Jan 08, 2014 9:42 am
by Dutchman
Mr. Kibernetik wrote:
I remember in the days of Commodore 128 (I had one) in that BASIC there was command like PLAY "C4..." and so on where notes were recorded as letters and numbers. As far as I remember, it was quite nice.
An identical method is used in the Basic! app. See the manual on
http://appball.com/basic/viewtopic.php?f=11&t=4447
Re: Music & Sound Commands?
Posted: Wed Jan 08, 2014 9:55 am
by Mr. Kibernetik
Nice manual!
Re: Music & Sound Commands?
Posted: Wed Jan 08, 2014 10:03 am
by Mr. Kibernetik
From Commodore manual, music was generated like this:
Commodore manual is attached, for collection or reference (PLAY chapter there is 7.3.2.3).
Re: Music & Sound Commands?
Posted: Wed Jan 08, 2014 1:44 pm
by Henko
Like Dutchman, I'm strongly in favor for "sound" in stead of "music".
This could be done creating a sound "object" with basically two commands,
1. Creating, editing and deleting the caracteristics of a sound object
This would regard waveform, ADSR envelope, possibly filters
2. A "play" command like "PLAY <name of sound-object> , PITCH, DURATION (A+D phase)', FILTER usage"
When this is available, we can program our own "music" players if desired, even with different sound types.
Re: Music & Sound Commands?
Posted: Wed Jan 08, 2014 2:33 pm
by Mr. Kibernetik
I think there will be nothing "instead".
There should be at least three categories:
- sounds generation (frequency, ...)
- music generation (notes, ...)
- playing sound files (MP3, ...)