Skratz - DJ console

Special collaborative projects managed by SynthMaker users

Moderators: electrogear, exonerate

Skratz - DJ console

Postby mwvdlee on Mon Jan 02, 2012 12:52 pm

UPDATE! Now version 0.22 with added feature; "Actually loads".

As promissed, I'll be releasing some of my partly-done projects on this forum. This is the first (and probably most interresting) one: Skratz.
This is a DJ console complete with MP3 loading and some hidden treasures inside. It's also largely broken. Core functionality works, but a lot of things are either buggy or plain don't work.
Essentially, this code has been lying untouched on my harddisk for nearly two years and I've only patched up some minor things over the last couple of days.

First things first;
It's licensed with GPL 3.0. If you distribute (changed) copies, you MUST include your schematic file without limitations.

And here are the files:
Skratz.zip
Zip file with some executables
(246.97 KiB) Downloaded 228 times
Unzip the skratz.zip file in "E:/Skratz" (or change the path in the schematic accordingly; one level down inside the "Constants" module). It contains two .exe files;
  • mpg123.exe - The latest binary distribution of this: http://www.mpg123.de/
  • vanderlee.exe - Provides services such as directory information and MP3 ID3tag decoding. Don't change the filename or it won't work.
Make sure the directory is writable, as communication between the executables and the schematic is handled using files.

Using it
Go play with it. Loading an MP3 takes quite a bit of time (~20-30 seconds). This is purely the fault of lack of native MP3 support; the mpg123 decoder is fast, but it has to write some 10MB per minute of audio to the harddisk, and the schematic has to load it in afterwards. With builtin MP3 support, both these long delays would be eliminated. It still wouldn't be ideal, but it'd be a lot faster.

Interresting stuff
There are too many interresting bits to mention, so I'll just name a few:
  • MP3 loading
  • MP3 ID3 tag loading using external executable. Reads all current ID3 specs, but chops UTF-8 characters.
  • The wave preview uses a custom method to hilight the average amplitude over time instead.
  • There's a nice hi/mid/lo filter in there. It's not ideal (I'm no expert in filters) but it should be perfect when everything is set to 100%
  • Leave the BassBoost at 0%; it's horrible ;)
  • Nice VU meters.
  • A completely unused file-browser. It was supposed to enable browsing for files without a popup and it's modal issues. The file browser works fine but I never got around to linking it to the rest of the schematic.
  • The spinning discs use a lot of view caching to achieve good performance. It also have a nice effect where it shows the tracks' "intensity" using dark/bright colors.
  • The spinning discs can be manually controlled. Currently they are in a sort of hybrid-CD/Vinyl mode where some actions are immediate and some have a "motor"-delay. Manually controlling the discs is somewhat inaccurate, thanks to S|M's lack of accurate timing in green (millisecond accuracy is not good enough). I've tried to be as accurate as possible, but to no avail.
  • A pretty pathetic BPM counter. If you use a monotonic house tracks, it's quite accurate. If you have something more varied, it breaks down.
  • It should work fine with a MIDI DJ console, but you may have to dig in the schematic to set the right control numbers
There's probably a lot of other stuff to discover, so enjoy scourging through the code.

Perhaps it'd make a nice community project. Though without builtin MP3 support, this project is pretty much doomed from the start.
Attachments
Skratz 0022.osm
(177.98 KiB) Downloaded 176 times
Last edited by mwvdlee on Sat Jun 02, 2012 2:20 pm, edited 1 time in total.
My current top SynthMaker bug:
    1. MIDI Input issue (showstopper, no workaround)
    2. All my previous bugs in SM1.7, because bug 1 makes SM2 worse than SM1.7
User avatar
mwvdlee
smanatic
 
Posts: 552
Joined: Thu Dec 03, 2009 8:42 am
Location: NL

Re: Skratz - DJ console

Postby RunBeerRun2 on Mon Jan 02, 2012 2:48 pm

Looks good, I'll check it out later on during the day.
Here are plugins made by Superman and Catwoman--> http://runbeerrun.blogspot.com
RunBeerRun2
essemist
 
Posts: 166
Joined: Wed Mar 21, 2007 8:53 pm

Re: Skratz - DJ console

Postby stw on Mon Jan 02, 2012 3:01 pm

I guess it would be a pleasure to dig into this but unfortunately it crashes my SM at initilization. :(
stw
smanatic
 
Posts: 639
Joined: Mon Jun 30, 2008 2:55 pm

Re: Skratz - DJ console

Postby DigitalWhiteByte on Mon Jan 02, 2012 3:36 pm

stw wrote:I guess it would be a pleasure to dig into this but unfortunately it crashes my SM at initilization. :(

same here
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: Skratz - DJ console

Postby Xtinct on Mon Jan 02, 2012 3:40 pm

Me too :(
Xtinct
essemist
 
Posts: 182
Joined: Thu Feb 10, 2011 11:06 pm

Re: Skratz - DJ console

Postby mwvdlee on Mon Jan 02, 2012 8:34 pm

stw wrote:I guess it would be a pleasure to dig into this but unfortunately it crashes my SM at initilization. :(

Strange. I'll look into it. Any error messages?

Since the file browser and the rest are pretty much separate, I've split them up into two files. Atleast one of these should load now (hopefully).
Skratz 0021.osm
(178.57 KiB) Downloaded 179 times

Skratz - File browser.osm
(21.13 KiB) Downloaded 183 times
My current top SynthMaker bug:
    1. MIDI Input issue (showstopper, no workaround)
    2. All my previous bugs in SM1.7, because bug 1 makes SM2 worse than SM1.7
User avatar
mwvdlee
smanatic
 
Posts: 552
Joined: Thu Dec 03, 2009 8:42 am
Location: NL

Re: Skratz - DJ console

Postby sunsynth on Mon Jan 02, 2012 9:15 pm

Damn Martijn... O:) 3:)

Would like 2 test it 2 but... crashes here always!

Did u deselected the Audio I/O 'Externas' ???

cheers,
Walter
User avatar
sunsynth
smaniac
 
Posts: 1494
Joined: Mon Sep 11, 2006 3:27 pm
Location: HH - Made in Germany

Re: Skratz - DJ console

Postby mwvdlee on Mon Jan 02, 2012 9:54 pm

sunsynth wrote:Damn Martijn... O:) 3:)

Would like 2 test it 2 but... crashes here always!

Did u deselected the Audio I/O 'Externas' ???

cheers,
Walter

Didn't deselect the audio, but it's deselected in this one:
Skratz 0021.osm
(178.53 KiB) Downloaded 193 times

(No audio in the file browser thing)
My current top SynthMaker bug:
    1. MIDI Input issue (showstopper, no workaround)
    2. All my previous bugs in SM1.7, because bug 1 makes SM2 worse than SM1.7
User avatar
mwvdlee
smanatic
 
Posts: 552
Joined: Thu Dec 03, 2009 8:42 am
Location: NL

Re: Skratz - DJ console

Postby stw on Wed Jan 04, 2012 3:31 pm

mwvdlee wrote:Didn't deselect the audio, but it's deselected in this one:
Skratz 0021.osm

(No audio in the file browser thing)


Maybe it's going wrong on my side but i still can't open it...
stw
smanatic
 
Posts: 639
Joined: Mon Jun 30, 2008 2:55 pm

Re: Skratz - DJ console

Postby mwvdlee on Wed Jan 04, 2012 3:36 pm

stw wrote:
mwvdlee wrote:Didn't deselect the audio, but it's deselected in this one:
Skratz 0021.osm

(No audio in the file browser thing)


Maybe it's going wrong on my side but i still can't open it...

How about the separate file browser?
My current top SynthMaker bug:
    1. MIDI Input issue (showstopper, no workaround)
    2. All my previous bugs in SM1.7, because bug 1 makes SM2 worse than SM1.7
User avatar
mwvdlee
smanatic
 
Posts: 552
Joined: Thu Dec 03, 2009 8:42 am
Location: NL

Re: Skratz - DJ console

Postby stw on Wed Jan 04, 2012 5:21 pm

mwvdlee wrote:
stw wrote:
mwvdlee wrote:Didn't deselect the audio, but it's deselected in this one:
Skratz 0021.osm

(No audio in the file browser thing)


Maybe it's going wrong on my side but i still can't open it...

How about the separate file browser?


works!
stw
smanatic
 
Posts: 639
Joined: Mon Jun 30, 2008 2:55 pm

Re: Skratz - DJ console

Postby DigitalWhiteByte on Wed Jan 04, 2012 6:19 pm

vanderlee.exe file is your creation?
:)
User avatar
DigitalWhiteByte
smanatic
 
Posts: 693
Joined: Thu Mar 12, 2009 1:07 am
Location: Milano - Italy

Re: Skratz - DJ console

Postby mwvdlee on Wed Jan 04, 2012 8:11 pm

DigitalWhiteByte wrote:vanderlee.exe file is your creation?
:)

Yes it is. Actually had to make it twice, since I lost the code for it about a year ago :(
I'll try to find out what happens with all the crashing in the schematic tomorrow.
My current top SynthMaker bug:
    1. MIDI Input issue (showstopper, no workaround)
    2. All my previous bugs in SM1.7, because bug 1 makes SM2 worse than SM1.7
User avatar
mwvdlee
smanatic
 
Posts: 552
Joined: Thu Dec 03, 2009 8:42 am
Location: NL

Re: Skratz - DJ console

Postby mwvdlee on Thu Jan 05, 2012 5:26 pm

Here's an incomplete version, lacking midi and audio I/O and the MP3/ID3tag loading.
It's crippled therefore, but I suspect the crashing might be caused by one of these. Please let me know if this one loads without crashing SM so I can try to fix the problems. I'd really like to get this done so you guys can play with, and hopefully improve it.
Skratz 0021 - crippled.osm
(169.83 KiB) Downloaded 163 times
My current top SynthMaker bug:
    1. MIDI Input issue (showstopper, no workaround)
    2. All my previous bugs in SM1.7, because bug 1 makes SM2 worse than SM1.7
User avatar
mwvdlee
smanatic
 
Posts: 552
Joined: Thu Dec 03, 2009 8:42 am
Location: NL

Re: Skratz - DJ console

Postby Xtinct on Thu Jan 05, 2012 5:41 pm

Still crashes :(
Xtinct
essemist
 
Posts: 182
Joined: Thu Feb 10, 2011 11:06 pm

Next

Return to Projects

Who is online

Users browsing this forum: No registered users and 2 guests