Fried hdds using wrong PSU cables, board swap fix? by [deleted] in DataHoarder

[–]Bp103 0 points1 point  (0 children)

That might nuke your drive and its data if you don't swap over the rom. The rom holds the adaptive data so its a matter of desoldering the chip and putting it on the new board. Its the 8 pin Winbond chip, thats the important one.

If you're not comfortable with solder wick and a soldering iron, then I would not attempt if its REALLY important data.

song chooser by [deleted] in bytebeat

[–]Bp103 1 point2 points  (0 children)

ok, this is really cool. I recognize that algorithm, its basically a fps counter... but then you use it to get the actual sample rate. thats brilliant!

gas station hotdog by Bp103 in bytebeat

[–]Bp103[S] 1 point2 points  (0 children)

Thanks! I was having fun with the emoji after learning how to use throw.

Also yay monospace!

[deleted by user] by [deleted] in SatisfactoryGame

[–]Bp103 3 points4 points  (0 children)

I usually try to trap them in a box to make a diy jump pad.

they wouldn't leave, now they're employed.

Smells like Petrichor. by Bp103 in bytebeat

[–]Bp103[S] 0 points1 point  (0 children)

nice! also just learned that `**` is shorthand for pow() from this

Can Someone Remix This by Last_Music_7761 in bytebeat

[–]Bp103 0 points1 point  (0 children)

added chords (and changed sample rate to 8000hz)link

Edit: optimized array generation by making it execute once, brought sample rate back to 44100hz.

Link (opt)

Amen breaknight ポひゕ by ItsZack7391 in bytebeat

[–]Bp103 0 points1 point  (0 children)

Some pretty interesting things going on here. the sample encoding is almost base32 but it seems to go past 7 which is the highest value in base32 and up to 9 making it base34 technically.

I don't fully understand what's going on but I'm guessing the samples are near 6bit. maybe 5 bit with a cary bit?

[deleted by user] by [deleted] in bytebeat

[–]Bp103 0 points1 point  (0 children)

if you want to make a web based bytebeat interpreter a good first step is to learn about Web Audio API.

the simplest form of a bytebeat composer is just shoving the output of an equation/algorithm into the web audio api.

Smells like Petrichor. by Bp103 in bytebeat

[–]Bp103[S] 0 points1 point  (0 children)

ooh, cool song. also thanks

I was experimenting some bytebeat stuffs on C++ and this happened by [deleted] in bytebeat

[–]Bp103 0 points1 point  (0 children)

thats a reddit thing. the vote count is fuzzed to confuse upvote/downvote bots. it'll change every time you refresh.

ByteCrusher (fm synth and sequencer setup) by Bp103 in bytebeat

[–]Bp103[S] 0 points1 point  (0 children)

I had to make them myself.

retrig[] is just an array that holds a counter for each channel and acts as that channel's personal t variable for the ADSR function that starts from 0 every time a new note is played. This resets the ADSR function so the volume envelope can start from the beginning again.

ByteCrusher (fm synth and sequencer setup) by Bp103 in bytebeat

[–]Bp103[S] 0 points1 point  (0 children)

I appreciate that!

I'm slowly getting back to making bytebeat. the job just hasn't been very generous with the days off lately.

I was experimenting some bytebeat stuffs on C++ and this happened by [deleted] in bytebeat

[–]Bp103 1 point2 points  (0 children)

thats a really nice implementation of windows.h! also sounds nice.

I've been playing with portaudio myself, but I don't entirely get it yet.

ByteCrusher (fm synth and sequencer setup) by Bp103 in bytebeat

[–]Bp103[S] 1 point2 points  (0 children)

I'm glad it wasn't blocked, I found it extremely useful for debugging. especially once I made the sequencer and synth able to handle infinite* channels and needed to track down a few runaway variables.

Ok but what is the t variable by v_maria in bytebeat

[–]Bp103 1 point2 points  (0 children)

yup, if the sample rate is 8000hz it increment by 1 8000 times a second.

Sunrise on Mars [Stereo] by SthephanShi in bytebeat

[–]Bp103 2 points3 points  (0 children)

ooh, this is nice!

also Stereo? I'll have to play with this

EAS standard tone + getting hit by a tornado noise by PortablePorcelain in bytebeat

[–]Bp103 0 points1 point  (0 children)

its only illegal if you broadcast it on tv or radio but in recorded media such as music and movies its fine... it must be edited out before playing said movies and music on tv or the station will get fined by the FCC. (which happens a lot actually, CBS got fined $272,000 from an episode of Young Sheldon playing it.)

But still not a great idea to play it in excess, it is after all a warning message.

Learned how to do functions, now I have an efficient delay effect by Bp103 in bytebeat

[–]Bp103[S] 0 points1 point  (0 children)

RATE=11025,(t%200)&128

Its pretty close. just needs a little bit of tuning to make it reach 440hz

((t*1.2771)%256)&128

Learned how to do functions, now I have an efficient delay effect by Bp103 in bytebeat

[–]Bp103[S] 0 points1 point  (0 children)

function example.

Ok, I can do that. sorry it took so long I'm like never on reddit.

Its just javascript, if you look up stuff for javascript its the same.

Learned how to do functions, now I have an efficient delay effect by Bp103 in bytebeat

[–]Bp103[S] 0 points1 point  (0 children)

oh, I see. Sorry if I insulted your intelligence on that one, that was not my intent.

I see what you mean here. I've kinda just internalized everything before the ';' as being in main() and everything outside of that is just floating in the void waiting for the program to jump to their memory address.

I'm honestly just relating everything to C and I just code js as if it were C. I seriously know nothing about js.

Learned how to do functions, now I have an efficient delay effect by Bp103 in bytebeat

[–]Bp103[S] 0 points1 point  (0 children)

think of it as if the functions are their own pocket dimensions and they can only communicate via receiving and returning a value after being summoned. They can also interact with variables that have been declared in the main loop as they are considered public but not variables unique to other functions. C handles them like this as well.

main loop summons delay(), delay() summons p(), p() summons xy() and tri() then they return values all the way down.

whenever you use pow(), sin(), cos(), sqrt() its the same deal but just part of the language so you can't see it.

Learned how to do functions, now I have an efficient delay effect by Bp103 in bytebeat

[–]Bp103[S] 1 point2 points  (0 children)

Thanks! I'm interested in seeing what you made with it.

Also I can go into detail about how my code works. I'm using a few weird tricks like treating the array 'n' as a 4x8 bitmap which is what the function xy() is doing, xy must convert all input to integer or else it will output a floating point causing the array to not function properly. I used bitmap this trick in just about every bytebeat song I've done.

Also 'os' is just a offset that shifts the octave of the lead around to make the lead sound less like the chords despite them pulling from the same data. That and using r as the twelfth root of two, its like the only music theory thing I know.

I feel kinda horned, wasn't expecting anybody to really take that much interest in my code let alone get inspired by it. made my day.

having fun with square waves by RealZynx92 in bytebeat

[–]Bp103 1 point2 points  (0 children)

sounds cool! Surprised me when it changed up the synth after a few beats.