Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

BSdetect

BSdetect's Journal
BSdetect's Journal
February 15, 2023

Suggestion re Hearts

When a poster receives say 20 hearts in one year grant them a special blue star in perpetuity

Then hearts can be redirected to others?

I'd also like to be able to opt out of getting hearts.

No offense intended.

December 25, 2022

IASOA

I am sick of abbreviations

December 24, 2022

So I asked chatGPT to write a software synthesizer and it did, read it's following comment



#include
#include

const int SAMPLE_RATE = 44100;
const int OSCILLATOR_COUNT = 2;
const int MAX_VOLUME = 32768;

struct Oscillator {
double frequency;
double phase;
double gain;
};

double generateSample(Oscillator oscillators[]) {
double sample = 0;
for (int i = 0; i < OSCILLATOR_COUNT; i++) {
Oscillator osc = oscillators;
sample += osc.gain * sin(2 * M_PI * osc.frequency * osc.phase);
osc.phase += 1.0 / SAMPLE_RATE;
if (osc.phase > 1.0) {
osc.phase -= 1.0;
}
oscillators = osc;
}
return sample / OSCILLATOR_COUNT;
}

int main() {
Oscillator oscillators[OSCILLATOR_COUNT];

// Set the initial frequencies and gains of the oscillators
oscillators[0].frequency = 440.0;
oscillators[0].gain = 0.5;
oscillators[1].frequency = 880.0;
oscillators[1].gain = 0.5;

// Generate and output a sine wave for one second
for (int i = 0; i < SAMPLE_RATE; i++) {
double sample = generateSample(oscillators);
std::cout

This code defines a simple synthesizer that consists of two oscillators that generate sine waves. The generateSample() function calculates the output of the synthesizer by adding the contributions of each oscillator, and the main() function generates and outputs a sine wave for one second.

This is just a basic example, and there are many other features and capabilities that you could add to your synthesizer. For example, you could add filters, envelopes, LFOs, and other audio processing elements to shape and manipulate the sound. You could also create a user interface to allow users to control and manipulate the synthesizer's parameters and settings.
December 22, 2022

So trump was never audited. WTF

How is that possible.

It's insane.

Clearly grounds for suspicion regarding the IRS

It is not merely a matter of being underfunded.

This cannot continue.

November 2, 2022

Urgh, more Netflix price hikes.

I'm trying to work out the relative cost of dropping Xfinity/Comcast to just provide internet with no cable TV, then just paying a few streaming apps.

Netflix seems to have very little that attracts us. With rising fees every few months they can lose subscribers. Another rise in December is planned.

Amazon Prime is even worse.

Netflix article here:

https://www.tomsguide.com/news/netflix-with-ads-launches-tomorrow-in-the-us-everything-you-need-to-know?utm_term=5505A5E9-6C11-41B2-8502-B23C3BE699C3&utm_campaign=E7CCEEA1-DDFE-442F-85F9-6D317BC29EC0&utm_medium=email&utm_content=19279486-CF79-4538-9905-8AF4122EFBBC&utm_source=SmartBrief




Profile Information

Name: Liam Donaldson
Gender: Male
Hometown: Santa Rosa, CA
Home country: USA
Current location: USA
Member since: Tue Aug 23, 2016, 05:33 PM
Number of posts: 8,998
Latest Discussions»BSdetect's Journal