Skip to content

josefinnilsson/sequencer

Repository files navigation

Sequencer

Prerequisite

ECLiPSe ≥ 6.1

How to run

Start eclipse by running eclipse, compile the sequencer program by running compile('sequencer'). and then generate a shuffled list by running generateSequence([LIST_OF_TRACKS],X) or sequence(TEXT_FILE,X) which will write the result to the file sequence.txt.

Example

Input generateSequence([track(1,"lana del rey",185), track(2, "kent", 180), track(3, "moto boy", 185), track(4, "moto boy", 190)],X). will generate four possible sequences:

X = [track(2, "kent", 180), track(3, "moto boy", 185), track(1, "lana del rey", 185), track(4, "moto boy", 190)]

X = [track(3, "moto boy", 185), track(2, "kent", 180), track(1, "lana del rey", 185), track(4, "moto boy", 190)]

X = [track(4, "moto boy", 190), track(1, "lana del rey", 185), track(2, "kent", 180), track(3, "moto boy", 185)]

X = [track(4, "moto boy", 190), track(1, "lana del rey", 185), track(3, "moto boy", 185), track(2, "kent", 180)]

Structure

The sequencer can currently handle tracks on the following form: track(ID, Artist, BPM).

Constraints

The constraints are currently:

  • Two consecutive songs can differ at most 5 in BPM.
  • Two consecutive songs can't have the same artist.

About

Sequencer for thesis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors