Update
parent
cc46586935
commit
0707639560
@ -1,6 +1,6 @@
|
||||
# 42
|
||||
|
||||
*HAHAHAHAHAHAHAHAHAHHHHAAA BAZINGA* --Sheldon fan
|
||||
*"HAHAHAHAHAHAHAHAHAHHHHAAA BAZINGA"* --Sheldon fan
|
||||
|
||||
42 is an even integer with prime factorization of 2 * 3 * 7. This number was made kind of famous (and later overused in pop culture to the point of completely destroying the [joke](jokes.md)) by Douglas Adams' book The Hitchhiker's Guide to the Galaxy in which it appears as the answer to the ultimate question of life, the Universe and everything (the point of the joke was that this number was the ultimate answer computed by a giant supercomputer over millions of years, but it was ultimately useless as no one knew the question to which this number was the answer).
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Code of Conduct
|
||||
|
||||
Code of conduct (COC), also Code of coercion, is a shitty invention of [SJW](sjw.md) fascists that dictates how development of specific software should be conducted, generally pushing toxic woke concepts such as forced inclusivity or use of politically correct language. COC is typically placed in the software repository as a `CODE_OF_CONDUCT` file. In practice COCs are used to kick people out of development because of their political opinions expressed anywhere, inside or outside the project, and to push political opinions through software projects.
|
||||
Code of conduct (COC), also code of coercion, is a shitty invention of [SJW](sjw.md) fascists that dictates how development of specific software should be conducted, generally pushing toxic woke concepts such as forced inclusivity or use of politically correct language. COC is typically placed in the software repository as a `CODE_OF_CONDUCT` file. In practice COCs are used to kick people out of development because of their political opinions expressed anywhere, inside or outside the project, and to push political opinions through software projects.
|
||||
|
||||
**[LRS](lrs.md) must never include any COC**, with possible exceptions of anti-COC (such as NO COC) or parody style COCs, not because we dislike genuine inclusivity, but because we believe COCs are bullshit and mostly harmful as they support bullying, censorship and exclusion of people.
|
||||
|
||||
|
@ -0,0 +1,86 @@
|
||||
# Speech Synthesis
|
||||
|
||||
TODO
|
||||
|
||||
## Example
|
||||
|
||||
This is a simple [C](c.md) program (using [float](float.md) for simplicity of demonstration) that creates basic vowel sounds using formant synthesis (run e.g. as `gcc -lm program.c && ./a.out | aplay`, 8000 Hz 8 bit audio is supposed):
|
||||
|
||||
```
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
double vowelParams[] = { // vocal tract shapes, can be found in literature
|
||||
// formant1 formant2 width1 width2 amplitude1 amplitude2
|
||||
850, 1650, 500, 500, 1, 0.2, // a
|
||||
390, 2300, 500, 450, 1, 0.9, // e
|
||||
240, 2500, 300, 500, 1, 0.5, // i
|
||||
250, 600, 500, 400, 1, 0.9, // o
|
||||
300, 400, 400, 400, 1, 1.0 // u
|
||||
};
|
||||
|
||||
double tone(double t, double f) // tone of given frequency
|
||||
{
|
||||
return sin(f * t * 2 * M_PI);
|
||||
}
|
||||
|
||||
/* simple linear ("triangle") function for modelling spectral shape
|
||||
of one formant with given frequency location, width and amplitude */
|
||||
double formant(double freq, double f, double w, double a)
|
||||
{
|
||||
double r = ((freq - f + w / 2) * 2 * a) / w;
|
||||
|
||||
if (freq > f)
|
||||
r = -1 * (r - a) + a;
|
||||
|
||||
return r > 1 ? 1 : (r < 0 ? 0 : r);
|
||||
}
|
||||
|
||||
/* gives one sample of speech, takes two formants as input, fundamental
|
||||
frequency and possible offset of both formants (can model "bigger/smaller
|
||||
head") */
|
||||
double speech(double t, double fundamental, double offset,
|
||||
double f1, double f2,
|
||||
double w1, double w2,
|
||||
double a1, double a2)
|
||||
{
|
||||
int harmonic = 1; // number of harmonic frequency
|
||||
|
||||
double r = 0;
|
||||
|
||||
/* now generate harmonics (multiples of fundamental frequency) as the source,
|
||||
and multiply them by the envelope given by formants (no need to deal with
|
||||
multiplication of spectra; as we're constructing the result from basic
|
||||
frequencies, we can simply multiply each by one directly): */
|
||||
while (1)
|
||||
{
|
||||
double f = harmonic * fundamental;
|
||||
double formant1 = formant(f,f1 + offset,w1,a1);
|
||||
double formant2 = formant(f,f2 + offset,w2,a2);
|
||||
|
||||
// envelope = max(formant1,formant2)
|
||||
r += (formant1 > formant2 ? formant1 : formant2) * 0.1 * tone(t,f);
|
||||
|
||||
if (f > 10000) // stop generating harmonics above 10000 Hz
|
||||
break;
|
||||
|
||||
harmonic++;
|
||||
}
|
||||
|
||||
return r > 1.0 ? 1.0 : (r < 0 ? 0 : r); // clamp between 0 and 1
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
for (int i = 0; i < 50000; ++i)
|
||||
{
|
||||
double t = ((double) i) / 8000.0;
|
||||
double *vowel = vowelParams + ((i / 4000) % 5) * 6; // change vowels
|
||||
|
||||
putchar(128 + 127 *
|
||||
speech(t,150,-100,vowel[0],vowel[1],vowel[2],vowel[3],vowel[4],vowel[5]));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
```
|
@ -1,9 +1,9 @@
|
||||
# USA
|
||||
|
||||
United States of America (USA, US or just "murika") is a [dystopian](dystopia.md) country of fat, stupid fascist people enslaved by [capitalism](capitalism.md), people endlessly obsessed with money and wars. USA consists of 50 states located in North America, a continent that ancestors of Americans invaded and have stolen from Indians, the natives whom Americans mass murdered.
|
||||
United States of America (USA, US or just "murika") is a [dystopian](dystopia.md) country of fat, stupid fascist people enslaved by [capitalism](capitalism.md), people endlessly obsessed with things such as money, wars, shooting their presidents and shooting up their schools. USA consists of 50 states located in North America, a continent that ancestors of Americans invaded and have stolen from Indians, the natives whom Americans mass murdered.
|
||||
|
||||
USA is very similar to [North Korea](north_korea.md): in both countries the people are successfully led to believe their country is the best. North Korea is ruled by a single political party, US is ruled by two practically same militant capitalist imperialist parties (democrats and republicans), i.e. de-facto one party as well. Both countries are obsessed with weapons and their military, both are highly and openly [fascist](fascism.md) (nationalist). Both countries are full of extreme [propaganda](propaganda.md), [censorship](censorship.md) and greatly support cult of personality, people worship dictators such as Kim Jong-un or [Steve Jobs](steve_jobs.md). US is even worse than North Korea because it exports its toxic culture over the whole world and constantly invades other countries, it is destroying all other cultures and leads the whole world to doom and destruction of all life.
|
||||
|
||||
In US mainstream [politics](politics.md) there exists no true left, only [right](left_right.md) and [pseudoleft](pseudoleft.md). It is only in extreme underground, out of the sight of most people, where occasionally something good comes into existence as an exception to a general rule that nothing good comes from the US. One of these exceptions is [free software](free_software.md) (established by [Richard Stallman](rms.md)) which was however quickly smothered by the capitalist [open source](open_source.md) counter movement.
|
||||
|
||||
On 6th and 9th August 1945 USA casually killed about 200000 civilians, most of whom were innocent men, women and children, by throwing atomic bombs on Japanese cities Hiroshima and Nagasaki. The men who threw the bombs and ordered the bombing were never put on trial, actually most Americans accepted it as a good thing to do lol.
|
||||
On 6th and 9th August 1945 **USA casually killed about 200000 civilians**, most of whom were innocent men, women and children, by throwing atomic bombs on Japanese cities Hiroshima and Nagasaki. The men who threw the bombs and ordered the bombing were never put on trial, actually most Americans praise them as [heroes](hero_culture.md) and think it was a good thing to do.
|
Loading…
Reference in New Issue