Liberty BASIC Community Forum
« Winter fun 2016 Sheet Music Sequencer »

Welcome Guest. Please Login or Register.
Mar 29th, 2017, 9:41pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 sticky  Author  Topic: Winter fun 2016 Sheet Music Sequencer  (Read 159 times)
Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5216
xx Winter fun 2016 Sheet Music Sequencer
« Thread started on: Nov 1st, 2016, 04:36am »

If you have never played with the midi now is the time to try.

The challenge is to allow the user to draw notes on sheet music and then use the midi interface to play those notes in proper sequence.

Piano.bas is a good place to start. You will find that you can play multiple instruments at the same time including drum and percussion.

When I get more time I will link demo code or resources but you may search out examples of midi use.
User IP Logged

Colin McMurchie
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 220
xx Re: Winter fun 2016 Sheet Music Sequencer
« Reply #1 on: Nov 1st, 2016, 6:53pm »

Hi Rod,

this reminds me of a challenge put out some 7 or 8 years ago (under the banner of Libby if I remember right). For that I wrote a music notation program. I have placed it as a zip file here

www.colinmcm.com/musicwriter.zip

It does not draw on Alice's Piano.bas to play sounds directly, but instead creates a midi file first (using a dll I wrote in C), which it then plays back. The dll is included in the zip file, but I lost the source code long ago.

It all worked perfectly in 2009, under probably windows XP or Vista. Under windows 7 there are issues wiith the program picking up the font required (beyond my present solving ability sadly), but it may give others some ideas of how to start their own notation software.

Colin McMurchie

PS is there somewhere better than my own site to lodge the zip file?
User IP Logged

Colin McMurchie
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 220
xx Re: Winter fun 2016 Sheet Music Sequencer
« Reply #2 on: Nov 1st, 2016, 7:17pm »

I think I have sorted the font problem. If anyone wants to try it, a corrected .bas file is here

www.colinmcm.com/musicwriternew.bas

Just drop it in to the folder crated by the zip file and use instead of the original file.

Colin
User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5216
xx Re: Winter fun 2016 Sheet Music Sequencer
« Reply #3 on: Nov 2nd, 2016, 07:35am »

Thanks Colin, not had time to play with it yet. If folks want some graphics to play with this zip gets a sheet music background and some note sprites. It also includes a keyboard image and a music notation True Text Font if you wanted to use text to create the sheet music.


http://gamebin.webs.com/Liberty/MusicGraphics.zip
User IP Logged

cundo
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 602
xx Re: Winter fun 2016 Sheet Music Sequencer
« Reply #4 on: Nov 2nd, 2016, 4:01pm »

I will try to code something. I already have some code that plays notes, and a tablature player.
User IP Logged

cundo
Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5216
xx Re: Winter fun 2016 Sheet Music Sequencer
« Reply #5 on: Nov 3rd, 2016, 06:07am »

Colin's .bas is quite amazing, it is full function and uses a .dll to play the notes.

If you want to code something yourself you can access the midi device that lives on your sound card. It is relatively straight forwards. Piano.bas is a starter but of course Alyce has more for you here.

http://lbpe.wikispaces.com/MidiMapper
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls