BASIC

Author Topic: Music  (Read 3713 times)

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1749
    • View Profile
    • Homepage
Music
« on: 2008-Oct-26 »
Non-looping music tracks

A way of positioning playback inside a track (Start at 86.263 seconds into the track and play once or repeat 3.5 seconds forward)

Stop music at next loop

Keep midifiles in memory for usage as soundeffects

mabe even able to play midi sounds directly without going thru midifiles? :-) (I can wish, can't I?)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1577
  • Particle Hawk
    • View Profile
    • Silver Volumetric Software
Re: Music
« Reply #1 on: 2008-Oct-27 »
lol yes dream on....
j/k

Looks like you already capable of making a function to autostop the midifiles...

Just calculate the time/tempo in the file and use stopmusic() with it, spare me from doing it :P

« Last Edit: 2008-Oct-27 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

http://silver.binhoster.com/

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4954
  • O Rly?
    • View Profile
Re: Music
« Reply #2 on: 2008-Oct-27 »
Non-looping music tracks

A way of positioning playback inside a track (Start at 86.263 seconds into the track and play once or repeat 3.5 seconds forward)

Stop music at next loop

FMod / BassMod

I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2600Mhz Ram, HIS 7970 GHz Edition @3GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1577
  • Particle Hawk
    • View Profile
    • Silver Volumetric Software
Re: Music
« Reply #3 on: 2008-Oct-29 »
Nonlooping midi: I made an MCI_Library, win32 only...with sample.

It even plays movies in fullscreen, also with sample.

http://www.glbasic.com/forum/index.php?topic=2502.msg18820#new


Edit:
PLAYMUSIC now uses a loop option.
« Last Edit: 2009-Jan-12 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

http://silver.binhoster.com/

Offline S. P. Gardebiter

  • Mr. Polyvector
  • ***
  • Posts: 245
    • View Profile
    • Tile 44 Interactive
Re: Music
« Reply #4 on: 2010-Mar-14 »
Sorry for the bump, but I'm kinda in need of this.

FMod / BassMod

Yeah? And what about that crediting and licensing stuff? Or are the libaries public domain?
Should I put the high quality mp3 Soundtrack I made, into the trash folder or does both support mp3 files?
I'm just asking for a simple fade-out / fade-in with multiple tracks - nothing too fancy.
« Last Edit: 2010-Mar-14 by S. P. Gardebiter »
~ Cave Story rules! ~

peter124

  • Guest
Re: Music
« Reply #5 on: 2011-May-07 »
I used multiple players before this but got same problem of looping, what should I do to resolve these problem permanently?