This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

hugie fixed file shit

  • Loading branch information...
jmdunton
jmdunton committed Nov 13, 2017
1 parent 6abf2b9 commit 1cb6a5554ea63daa0fc55ac59189f44daa7d6f51
@@ -17,7 +17,7 @@
public class HashTune {
static String music;
static int volume = 60;
static int duration = 500;
static int duration = 200;
public static void main(String[] args) throws MidiUnavailableException, InterruptedException {
System.out.println("Type some string of words/characters, then press enter");
@@ -43,7 +43,6 @@ public static void playSong() throws MidiUnavailableException, InterruptedExcept
Synthesizer synth = MidiSystem.getSynthesizer();
synth.open();
MidiChannel[] channels = synth.getChannels();
Random rand = new Random();
// notes[] array of midi codes in C major Pentatonic {0, C5, D5, E5, G5, A5, C6, D6, E6}
int[] notes = { 0, 60, 62, 64, 67, 69, 72, 74, 76};
String[] names = {"x", "C", "D", "E", "G", "A", "C", "D", "E"};
@@ -17,9 +17,8 @@ public Mozart(String input) {
* @return
*/
public String writeMusic() {
Stack<String> words = new Stack<String>();
String[] arr = input.split(" ");
Integer code = words.hashCode();
Integer code = input.hashCode();
hashCodes = code.toString();
for (String newWord : arr) {
code = newWord.hashCode();
@@ -47,7 +47,7 @@
*/
public static void main(String[] args) throws MidiUnavailableException, InterruptedException, FileNotFoundException {
System.out.println("enter song:");
File file = new File("song.txt");
File file = new File("H:\\git\\hashTune\\hashTune\\hashTune\\song.txt");
Scanner console = new Scanner(file);
input = console.next();
console.close();
@@ -1 +1 @@
024024
024024024D024024024UU024024024

0 comments on commit 1cb6a55

Please sign in to comment.