Skip to content

Instantly share code, notes, and snippets.

View h3adHunter's full-sized avatar
🔮
Looking for work

jotaemebe h3adHunter

🔮
Looking for work
View GitHub Profile
/* (Not so) simple synth based on Mozzi library and a bunch of pots.
*
* This code is derived from the public domain example of an 8 potentiometer
* synth from e-licktronic (https://www.youtube.com/watch?v=wH-xWqpa9P8).
*
* Severely edited for clarity and configurability, adjusted to run with modern
* versions of Mozzi, extended for polyphony by Thomas Friedrichsmeier. Also,
* this sketch will auto-generate fake MIDI events and random parameters, so
* you can start listening without connecting anything other than your
* headphones or amplifier. (Remove the FAKE_POTS and FAKE_MIDI defines, once
public class Main {
public static void main(String[] args) {
ArrayList<Integer> initialNumbers = new ArrayList<>(Arrays.asList(60, 3, 100, 40, 98, 104, 23, 77, 35));
int workers = 4;
float listSize = (float) initialNumbers.size();
int factor = (int) Math.ceil(listSize / workers);
System.out.println("Numeros a ordenar: " + initialNumbers + " Tamaño: " + initialNumbers.size());