残りの構造的な判断を Jev に任せ、temperature スライダーを足す - #6
Merged
Merged
Conversation
ベースの音色・コードの連打・ノイズ・ep の差し込み・リードの音色・並びの再抽選・キックの変形・平行移動の幅・ペダルを、既存の harm / phrase / shift の問い合わせに質問を足して Jev から引く。答えが無いときは従来の手元の確率で引く。 Co-authored-by: Claude Code <claude@anthropic.com> Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Jev の API には温度の指定が無いので、返った確率に手元で掛ける。choice は p^(1/T) を正規化し、noul は対数オッズを T で割る。0〜2、既定 1。 Co-authored-by: Claude Code <claude@anthropic.com> Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
D-17. 残りの構造的な判断も Jev に任せる
手元の乱数で決めていた9つの判断を Jev に移した。問い合わせの回数は増やさず、既存の harm / phrase / shift の ask に質問を足す。答えが無いときや jev の割合で手元に回したときは、従来の確率で引く。
tight/chop/noiseeplead(差し替えるタイミングは手元)mutate(4小節の確率を小節あたりに換算)kick(8小節の終わりの3小節前の回だけ)step/pedaljevHoldに取っておくbass: tight、lead timbre: square、kick bends (push)などを出すD-18. temperature スライダー
decision 群に
temperature(0〜2、既定 1) を足した。Jev の API には温度の指定が無いので、返った確率に手元で掛ける (choice はp^(1/T)を正規化、noul は対数オッズを T で割る)。0 ではいちばん確率の高い答えを必ず取る。デプロイ
worker/src/decide.js) は新しい質問を受けるよう変更済み。本番 Worker はデプロイ済みで、新しい質問に 200 で答えることを確認したindex.htmlを当てると問い合わせが 400 になるので、Worker を先に出すことテスト
npm test: 100 passed / 2 skippednpm run test:worker: 10 passed🤖 Generated with Claude Code