QL BEEP Music

Anything QL Software or Programming Related.
User avatar
Mark Swift
Bent Pin Expansion Port
Posts: 86
Joined: Fri Jul 18, 2014 9:13 am
Location: Blackpool, Lancs, UK
Contact:

QL BEEP Music

Post by Mark Swift »

Hello,

Here's Spanish Folies by Alessandro Scarlatti in QL BEEPs

SpanishFollies.zip
(680 Bytes) Downloaded 119 times

There are multiple piano video tutorials online that display notes in letter notation.
I have no musical ability so find that these tutorials are a simple way to transcribe music.
https://www.youtube.com/watch?v=u7-ejmf ... l&index=20

The notes in letter notation were copied into DATA statements in the following program, which itself generates DATA statements that contain those notes converted into BEEP values.

MakeMusic.zip
(1.19 KiB) Downloaded 122 times

Just a bit of fun really.


User avatar
bwinkel67
QL Wafer Drive
Posts: 1517
Joined: Thu Oct 03, 2019 2:09 am

Re: QL BEEP Music

Post by bwinkel67 »

Here's a video on doing QL Music. The program is able to store the song, which I believe can be played by a stand-alone program if you code up a loop to read in the file and apply it to BEEP.

https://www.youtube.com/watch?v=aBdqAv9oPmI


qbits
Gold Card
Posts: 251
Joined: Sun Dec 11, 2016 3:32 pm

Re: QL BEEP Music

Post by qbits »

Hi Mark & Bwinkel67
The video is of an earlier release of QBITS QLSounds.

See QL Tinkering Posts under Help For New Users.
For more information download the accompanying pdf. The new version can play BEEP and QSound Notes.
It now has a four Octaves keyboard for SCORE Mode and a Tracker in BEEP Mode.

The QBITS QLSound Data File: Score Pages sl [0-9] Score Notes sn [0 to 23] and pitch attributes sp [0 to 4].
PScore plays back the Notes as BEEP commands using BRead: or in QSounds using QNotes.

With a little manipulation I guess standalone code could be compiled and run as a back ground to Games etc.

QBITS
Attachments
QSounds.jpg


stevepoole
Aurora
Posts: 888
Joined: Mon Nov 24, 2014 2:03 pm

Re: QL BEEP Music

Post by stevepoole »

Hi Qbits,
Your screen shot looks very impressive. Is the program available yet ? Steve.
_________________


qbits
Gold Card
Posts: 251
Joined: Sun Dec 11, 2016 3:32 pm

Re: QL BEEP Music

Post by qbits »

Hi Stevepool,
You can find QBITS QLSounds and other Progs under post QL Tinkering ...

QBITS
Attachments
QBS_QLSounds.zip
(12.77 KiB) Downloaded 126 times
QB06_QLSoundSE_doc.pdf
(1.7 MiB) Downloaded 115 times


stevepoole
Aurora
Posts: 888
Joined: Mon Nov 24, 2014 2:03 pm

Re: QL BEEP Music

Post by stevepoole »

Hi Qbits,
I downloaded 'QBS_QLSounds.zip' which is potentially a very powerfull piece of software. Here are some initial remarks if I may :

Even after looking through the 'readme's, I did get quite confused with the various keyings. May I suggest for simplified consistancy :
MODE PARAMETERS : Use SHIFT$ & CHR$ to select characters. ok!
MODE TRACKER/STAVES : TOP STAVE : Use ALTkey$ & CHR$ to select characters. (needed)
BOTTOM STAVE : Use CTRL$ & CHR$ to select characters. ok !
KEYBOARD : Use only CHR$ to select characters... (n.b: '<' and '>' unwieldy on AZERTY).

Otherwise, I never use PAUSES for note and rest durations, as they are inaccurate. I use system-ajusted WAIT loops.
But congratulations for what you have done ! Great presentation and great promise... Steve.
_________________________________


qbits
Gold Card
Posts: 251
Joined: Sun Dec 11, 2016 3:32 pm

Re: QL BEEP Music

Post by qbits »

Hi Steve,

Noted: the AZERTY Keyboard ‘<’ and ‘>’ unwieldy being up/lower case on same key next to Shift.

Thank you for quick review and suggestions I will look into them for next release.

QBITS


User avatar
Mark Swift
Bent Pin Expansion Port
Posts: 86
Joined: Fri Jul 18, 2014 9:13 am
Location: Blackpool, Lancs, UK
Contact:

Re: QL BEEP Music

Post by Mark Swift »

Hi Qbits,
qbits wrote: Sat Jul 27, 2024 5:04 pm The QBITS QLSound Data File: Score Pages sl [0-9] Score Notes sn [0 to 23] and pitch attributes sp [0 to 4].
PScore plays back the Notes as BEEP commands using BRead: or in QSounds using QNotes.
From referencing the above and looking through your code, is the following correct?

QBITS QLSound Data File Format

Firstly, 768 values signifying QL BEEP values for notes B5 to F1 plus some padding - i.e.

96 of these...

Code: Select all

pitch\n
pitch_2\n
grad_x\n
grad_y\n
wrap\n
fuzzy\n
random\n
Then, the score data - i.e.

240 of these...

Code: Select all

      Pitch\n  : 0=B5, 1=A5, etc
       Type\n  : <3=Skip, <8=Rest,>7=Sound
        Val\n  : undefined?
Articulation\n : 0=standard, 1=Staccato, >1=Tenuto
       Note\n  : .25=Semiquaver, .5=Quaver, .75=Quaver-Dot, 1=Crotchet, 1.5=Crotchet-Dot, 2=Minim, 3=Minim-Dot, 4=Semibreve
Thanks


qbits
Gold Card
Posts: 251
Joined: Sun Dec 11, 2016 3:32 pm

Re: QL BEEP Music

Post by qbits »

Hi Mark,
Yes the QLSound Data files Stores 96 Note entries used or not with Attributes:- see Def Proc BRead p,h,t,s,w,f,r
[Duration, Pitch, Harmonic, time interval, number of steps, wraps, fuzziness, randomise]

It then stores the Tracker Sequence /Score 10 pages [sl] : Stave Note [sn] : Note parameters [sp].
For display these are check against a lookup table DSymbol.
For QSound they also checked with QNote(qn).

Included in the next QBITS QLSound release maybe a File SAVE Option of Tracker/Score Pages in a Data format for QSound.
As for a QSound data File LOAD this will be more complex and require a reconstruct of the present coding.

QBITS

A Lifetime is full of endless possibilities, but just taking a small step for some can take a lifetime…


User avatar
Mark Swift
Bent Pin Expansion Port
Posts: 86
Joined: Fri Jul 18, 2014 9:13 am
Location: Blackpool, Lancs, UK
Contact:

Re: QL BEEP Music

Post by Mark Swift »

Hi,

Here's a simple program to convert QBITS_QLSoundSE score files into DATA statements for standalone playback in a SuperBASIC program. It ignores articulation and rest Notes and is pretty rudimentary.
Edit LINE 1 to change the source score file.

Score2DATA.zip
(1016 Bytes) Downloaded 159 times


Post Reply