r/computerscience • u/Slacation • May 02 '18
My mom just started learning to code and is super proud of her first project โ programming her calculator to play the University of Texas alma mater ๐ค๐ผ
12
9
5
u/misingnoglic May 02 '18
Very cool! Definitely show her the music21 python library, as well as MaxMSP!
5
1
u/shawmonster Jun 29 '18
did she write a program of literally just steps of each note to play for a certain time, or did she somehow create and algorithm that takes the song as input and can play the song? like would this work for any song? how does the program work?
1
u/Slacation Jun 29 '18
She had to specify the frequency of sound to emit and the duration. Yeah, she could do this with any song as long as she has sheet music and can tell what notes they are so she can convert it into frequency.
3
3
u/bitcointoaster May 03 '18
Good on her, she should be proud! Its nice to see people enjoying programming.
2
2
u/MrRiskAdverse May 03 '18
This is great! Would you mind explaining what is happening here / how this was done?
2
May 03 '18
What the hell is generating the tones, i cant tell.
1
u/lgslacum May 03 '18
The TI Nspire is connected to the TI Innovator Hub. The Hub is generating the music from the programmed frequencies.
1
-2
-61
0
May 02 '18
[deleted]
15
u/Slacation May 02 '18
I wanted to post her face too, but she told me โno, not going to break hundreds of phonesโ ๐
But I can vouch that she was grinning from ear to ear in excitement as it was playing ๐
20
u/solinvictus21 May 03 '18
The University of Texas alma mater is โOh, Iโve been workinโ on the railroadโ?!?
TIL