Kevin Vance - KevEdit

Entries | Archive | Friends | Friends' Friends | User Info

11:43 pm

KevEdit

Thursday, April 4th, 2002
Previous Entry Share Next Entry
(310:pts/2)(parabellum:~/projects/kevedit/synth)% ./play ig#sxg#igfs+c-gegicsg#a#i+csxci-a#g#s+d#-a#ga#id#
Sound device:
Freq = 44100
Channels = 1
Samples = 4096
Format = Signed 16-bit LSB


Well, my sound code is working (on any frequency, 8 or 16 bit), and my half-assed #play parser is done. It's "good enough". I'm going to graft it into KevEdit, and then get back to my CS project.

bitman, if there is any pressing stuff that has to get into KevEdit, tell me, because I'm aiming for The Big 0.5 Release tomorrow.

(addendum) Actually, it sounds quite awful at lower frequencies (none of the notes seem to be right at 8000Hz). I guess I'm rounding somewhere. I'll fix it if I can...
Link )Reply )

Comments
[User Picture]From: bitman
2002-04-04 10:38 pm (UTC)
I have a perfectly good full-assed #play parser in zzm.c. It even parses everything into a generic zzmnote structure so that it can be used with non-pcspeaker playback. You can move this structure to note.h and rename it if you want. It features type (note, rest, drum, error), duration (in milliseconds), frequency/drum index (C = 0, D = 1, etc.), octave, and slur (should there be a break between notes?). All of these should apply to any playback system, if designed to use them.

zzmgetnote() uses a zzmplaystate instance to keep track of where it is in a music string so that you can grab one zzmnote at a time. It's all very expandable -- take a look.
(Reply) (Thread)
[User Picture]From: bitman
2002-04-04 10:54 pm (UTC)
I don't think there's really anything pressing. Make sure to list all the new features in both windows.txt and the README. Also, I kinda skimped on "Getting Started" in windows.txt; you may want to add more.

Some file permissions are wrong in the CVS and I'm not sure how to fix them, sort of remove and add again. Several .hlp's in docs/ have execute permissions and shouldn't. makehelp.sh and mkrpmtar.sh need execute permissions added to them, and possibly some others. Almost everything should be in unix format, and I think that is straightened out. The CVS info pages claim that CVS doesn't store any file permissions, but checking out a fresh copy reveals all these permission weirdnesses that break things. *shrugs* This is what I get for keeping everything on a FAT filesystem...
(Reply) (Thread)
[User Picture]From: kvance
2002-04-04 10:56 pm (UTC)
I can't figure out how to fix the execute bit using cvs (I don't think there is a command). This would be easy to do with direct access to the CVS repository, but no such thing with sourceforge. I tried removing and readding makehelp.sh, but since CVS keeps files even after you remove them, the non-execute bit stuck. I'd guess that the only way to do it is to rename the files with wrong attributes.
(Reply) (Parent) (Thread)
[User Picture]From: bitman
2002-04-04 10:59 pm (UTC)
Gah. Moments like this make me look forward to Subversion.
(Reply) (Parent) (Thread)
[User Picture]From: bitman
2002-04-04 11:06 pm (UTC)
Oh yeah, and the install pictures in the repository still seem to be non-binary and corrupt. I hope this is only a problem with WinCVS, but I have been able to use it successfully with binary files in another sf project. The dexe and zztimage aren't listed as binary files either...
(Reply) (Thread)
[User Picture]From: kvance
2002-04-04 11:12 pm (UTC)
In unix, everything is binary, so I have no idea how to say that certain files are "not to be translated into dos newlines"... I managed to get the files just fine using cygwin cvs in my vmware winxp box...
(Reply) (Parent) (Thread)
[User Picture]From: bitman
2002-04-04 11:18 pm (UTC)
"Binary" has nothing to do with newlines in CVS. It mainly tells CVS not to bother diffing a file because the results will utterly suck for a binary file. See:

http://www.cvshome.org/docs/manual/cvs_9.html

Apparently the problem is that winCVS is messing with newline chars for me, a behavior I need to change. But it would still be good to flag these files as binary for reasons mentioned in the CVS manual.
(Reply) (Parent) (Thread)
[User Picture]From: kvance
2002-04-05 07:34 am (UTC)
I added binary flags to the dexes and the install graphics. A fresh checkout will hopefully work in DOS now.
(Reply) (Parent) (Thread)
[User Picture]From: bitman
2002-04-05 06:04 pm (UTC)
Oh goody! I'll try it.
(Reply) (Parent) (Thread)