dings: Nibu carries proposal 3 (8 kHz 5-bit smoothed sine) for every event
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m6s
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m6s
Meta heard v3 and chose proposal 3; Nibu confirmed it as her voice for all events. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9877154033
commit
1dea4b51e5
5 changed files with 15 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,4 +1,5 @@
|
|||
import { readFileSync, existsSync } from 'node:fs';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { join } from 'node:path';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { DingManifest, Motif, dingsEnabled, parseManifest, pickDing } from './dings';
|
||||
|
|
@ -63,7 +64,7 @@ describe('v3 manifest against the parser', () => {
|
|||
MOTIFS.forEach((m) => expect(pickDing(manifest, 'someone', m)?.path).toBe(`neutral/${m}.ogg`));
|
||||
});
|
||||
|
||||
it('Nibu is the static-filter square (pick 1): senders/nibu, never the proposals folder', () => {
|
||||
it('Nibu carries pick 3 (8 kHz 5-bit smoothed sine) for every event: senders/nibu, never the proposals folder', () => {
|
||||
MOTIFS.forEach((m) => {
|
||||
const path = pickDing(manifest, 'nibu', m)?.path as string;
|
||||
expect(path).toBe(`senders/nibu/${m}.ogg`);
|
||||
|
|
@ -71,6 +72,19 @@ describe('v3 manifest against the parser', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it("Nibu's four files are AquaSynth's proposals/nibu3 (sha256 prefix)", () => {
|
||||
const want: Record<Motif, string> = {
|
||||
mention: '3833f504903f',
|
||||
dm: 'ad4839400f2c',
|
||||
message: '6ec6fc893b94',
|
||||
invite: 'aefb6ff79c42',
|
||||
};
|
||||
MOTIFS.forEach((m) => {
|
||||
const hash = createHash('sha256').update(readFileSync(join(DINGS, `senders/nibu/${m}.ogg`)));
|
||||
expect(hash.digest('hex').slice(0, 12)).toBe(want[m]);
|
||||
});
|
||||
});
|
||||
|
||||
it('keeps the clip lengths the design assumes: message under 400 ms, nothing over 600 ms', () => {
|
||||
VOICES.forEach((v) => {
|
||||
expect(oggMs(`senders/${v}/message.ogg`)).toBeLessThan(400);
|
||||
|
|
|
|||
Loading…
Reference in a new issue