#1
Don't suppose you pitmonkeys know much about python. By that I mean the programming language.

Anyone, in this program I am writing, something is wrong, but I can't figure out what.

Its supposed to take notes from another file and convert them into a song in .wav format. Yet for some reason, whenever it prints the song it only prints 13 seconds of static.

Anyone, anyone wanna take a stab at this. Knock yourselves out, break ****.

VERY METAL!
\m/
RIP Ronnie James Dio

Quote by metaldud536
RazorTheAwesome, if I was a Ditto, I'd transform into YOU

Quote by Kensai
Basically god wanted to punish people for getting educated/eating apples.

Quote by Jackal58
We all desire a little pussy.
#2
Let me see your computer I have a solution...

I will stand by all this drinking if it helps me through these days,
It takes a long time just to get this all straight.
#3
tl;dr

i got a python for you

GUITARS CURRENTLY USED
Ibanez RG7621
Ibanez RG121
ESP LTD H-400
#4
Python is ancient, bro.
GEAR:
Fender USA Lefty Telecaster
Custom HSS Lefty Strat
Samick Hollow-body
BOSS DS-1
BOSS SD-1
BOSS CE-4
BOSS DD-6
USA Big Muff PI
Peavey MACE 160w Head
Peavey MACE 410 Cabinet
Yamaha FG-450S-L
Eleca DAG3LN Lefty Acoustic
#5
Quote by Inertiaaa
Python is ancient, bro.


we're gonna move onto C++ after we finish working with python.
VERY METAL!
\m/
RIP Ronnie James Dio

Quote by metaldud536
RazorTheAwesome, if I was a Ditto, I'd transform into YOU

Quote by Kensai
Basically god wanted to punish people for getting educated/eating apples.

Quote by Jackal58
We all desire a little pussy.
#8
lol didnt you try getting us to figure this out like 2 weeks ago?
Gotta keep my eyes from the circling skies...
tounge tied and twisted just an earth bound misfit...

>CRYPTIC METAPHOR<


Quote by ilikepirates
ilikeyou.

not hated
#10
Quote by bass-man9712
lol didnt you try getting us to figure this out like 2 weeks ago?


no that was something else. I got that to work just fine.
VERY METAL!
\m/
RIP Ronnie James Dio

Quote by metaldud536
RazorTheAwesome, if I was a Ditto, I'd transform into YOU

Quote by Kensai
Basically god wanted to punish people for getting educated/eating apples.

Quote by Jackal58
We all desire a little pussy.
#11
I have a python in my pants that wants to take a stab at your shit.
VENUSIAN
FB SC BC TW
Patterns In The Ivy present ethnicity on an intriguing and dedicated level. ~Ambient Exotica
A mesmeric melange of yearning voice, delicate piano and carefully chosen samples. ~Lost Voices
#12
Quote by rabidguitarist
I have a python in my pants that wants to take a stab at your shit.

Eww gay.
Blog Of Awesome UGers.
Quote by OddOneOut
I seem to attract girls.
Which is annoying, cos I'm a girl and I like cock.

Quote by IRISH_PUNK13
Being an idiot should be illegal too.
#13
Quote by rabidguitarist
I have a python in my pants that wants to take a stab at your shit.


wow no wonder you were hesitant to go to that sex club or whatever it was.
VERY METAL!
\m/
RIP Ronnie James Dio

Quote by metaldud536
RazorTheAwesome, if I was a Ditto, I'd transform into YOU

Quote by Kensai
Basically god wanted to punish people for getting educated/eating apples.

Quote by Jackal58
We all desire a little pussy.
#14
Alright. I'll attempt to help.. are you receiving any error messages? Or is it shutting down right away?
GEAR:
Fender USA Lefty Telecaster
Custom HSS Lefty Strat
Samick Hollow-body
BOSS DS-1
BOSS SD-1
BOSS CE-4
BOSS DD-6
USA Big Muff PI
Peavey MACE 160w Head
Peavey MACE 410 Cabinet
Yamaha FG-450S-L
Eleca DAG3LN Lefty Acoustic
#15
for a serious answer:

Why are you using line[0]? Shouldn't it be line or some other variable you can increment? otherwise you're just writing over the same key in your array...

Also, throw in a random debugging line that will rename and save the noteFile before you do any editing. That way you can be sure you read in the file correctly.

**Disclaimer: I've never written more than 2 lines of Python in my life. I did graduate with a Bachelor's Computer Science, though. We used mostly C and Java based languages**

EDIT:

PM me if you need more help... I'm not going to subscribe to this thread with all of the idiotic penis references being made by people that are surely hung like a mouse
Last edited by theGlitch at Sep 17, 2009,
#16
Quote by Inertiaaa
Alright. I'll attempt to help.. are you receiving any error messages? Or is it shutting down right away?


no its going through, its just not doing what its supposed to which is make sound.

Instead its making static noises.
VERY METAL!
\m/
RIP Ronnie James Dio

Quote by metaldud536
RazorTheAwesome, if I was a Ditto, I'd transform into YOU

Quote by Kensai
Basically god wanted to punish people for getting educated/eating apples.

Quote by Jackal58
We all desire a little pussy.