Questions tagged [pset3-music]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
41 views

Pset3, Issue with duration in helpers. Can't compile, strange error message

Back again, this time trying to figure out pset3. I think everone is familiar with the pset, but for anyone who isn't, I'm trying to convert a fraction (1/8, 1/4, 1/2, etc) to a number of eighths. ...
0
votes
1answer
47 views

Pset3 is_rest does not compile right?

I have some code I have written to test whether a blank line has been reached in the music file but I am not familiar with how to return a Boolean statement as true in C. When I run make I am getting ...
0
votes
1answer
59 views

Music frequency accidental and note issue

My music program currently returns values for all notes and accidentals that equals the frequency of note A in that octave, but I cannot make the frequency output change for different notes or ...
0
votes
1answer
68 views

In pset3 music, how to interpret inverted sheet music notes

PSET3: https://docs.cs50.net/2018/x/psets/3/music/music.html In the second row of bday sheet music, how to interpret inverted notes? Also how to identify if the sheet music has any rests? IMO, the ...
0
votes
1answer
69 views

Calculate n (semitones) for frequency in pset3

I'm having a bit of a hard time trying to calculate the value of n(the number of semitones from A4). I'm currently using the following formula: if (octave > A4_OCTAVE) { n = (octave - ...
0
votes
1answer
196 views

music helpers.c

Please help me to identify the errors or bugs on this code. Thank you. // Helper functions for music #include <cs50.h> #include <stdio.h> #include <string.h> #include <math.h>...
0
votes
1answer
223 views

segmentation fault in pset3, don't understand why

here's the code: // Helper functions for music #include <cs50.h> #include <stdlib.h> #include<stdio.h> #include<string.h> #include "helpers.h" #include <math.h> #...
0
votes
1answer
118 views

How to “make notes” file in pset3 ?

This is a really basic question, but I can't "make notes" in pset 3 . I don't know what is wrong. Here is what I do: I tried the following, but maybe it's wrong because "notes" is not a directory ...
0
votes
1answer
113 views

pset3 music synthesize

I've been trying to compile my music code for pset3; currently I was able to fix to errors that I had on helpers.c but now I'm receiving errors for synthesize.c and wav.h. My question is 1. am I ...
0
votes
3answers
134 views

cs50 music only frequency of A notes returned

could you please help. I just don´t understand why only A notes are calculated. Please see code below. Many thanks for your help in advance. //Program to calculate note frequency ...
0
votes
1answer
2k views

pset3 frequency “called object type 'int' is not a function or function pointer” (line 108)

I'm not sure what is wrong with my code or why I'm getting error "called object type 'int' is not a function or function pointer" (line 108) thank you for helping!
0
votes
1answer
101 views

Pset 3 Music. Brute forced the frequency function, no syntax errors but only getting 0's for all my answers? Any Ideas?

I know my code is not clean at all. For the frequency function I just brute forced it by just starting with "what if there were only A's?" and copied that for the rest of the letters. Naturally messy ...
0
votes
1answer
280 views

How to debug Pset3 music?

I am doing the pset3 (music). However, my code appears to be very buggy. Although it compiles just fine, the frequency outputs are all 440Hz. Also, it seems like it can't read the duration either. I ...
1
vote
2answers
290 views

pset3 music- frequency returns zeroes

I am having trouble with my code, I have spent a really long time trying to figure out why my code is only returning frequency with zeroes throughout. I would really appreciate if some could look at ...
0
votes
1answer
62 views

pset3 header.c atoi errors

I'm afraid to research too much because I don't want spoilers, I just want pointers. I'm getting a lot of errors, in particular atoi errors. I tried saving an array element as a char, but atoi still ...
0
votes
1answer
1k views

Pset3 music frequency

I'm certain my code is waaaay too long for what they are asking me to do, but I'm not sure how to change the thought process. In any case, my check comes back with huge numbers, so the math is wrong ...
0
votes
1answer
219 views

is my implementation of is_rest correct?

I don't know how to check this function's correctness, but when I compare my code to other people I seem to have the idea right. Can someone tell me the correct implementation of this code? // ...
0
votes
1answer
234 views

CS50/Pset3/Music, timed out while waiting for program to exit, How to debug?

Something goind wrong in the frequency function and i don't know how to debug with these many files of the programm to allocate the problem. i've made a seprate test file to just test the frequency ...
1
vote
1answer
349 views

pset 3 music (frequency) issues

So im having trouble figuring out how to increase the hz by octave. this code puts out all the 4th octave notes with the 5th octave hz values. if i take out the 12.0 from ((n+12.0)/12.0) then it ...
0
votes
2answers
1k views

Cs 50 - 2018- Pset03 Music

Please help me in debugging this code for Pset03 Music, no errors but the output of frequency function is same for all notes. I was unable to get the mistake https://pastebin.com/qNNAQYiQ