react-native-simple-note-pitch-detector 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/expo/modules/simplenotepitchdetector/ReactNativeSimpleNotePitchDetectorModule.kt +2 -1
- package/build/ReactNativeSimpleNotePitchDetector.types.d.ts +2 -0
- package/build/ReactNativeSimpleNotePitchDetector.types.d.ts.map +1 -1
- package/build/ReactNativeSimpleNotePitchDetector.types.js.map +1 -1
- package/package.json +1 -1
- package/src/ReactNativeSimpleNotePitchDetector.types.ts +2 -0
|
@@ -38,7 +38,8 @@ class ReactNativeSimpleNotePitchDetectorModule : Module() {
|
|
|
38
38
|
"note" to pitchData.note,
|
|
39
39
|
"octave" to pitchData.octave,
|
|
40
40
|
"frequency" to pitchData.frequency.toDouble(),
|
|
41
|
-
"offset" to pitchData.offset.toDouble()
|
|
41
|
+
"offset" to pitchData.offset.toDouble(),
|
|
42
|
+
"amplitude" to pitchData.amplitude.toDouble()
|
|
42
43
|
)
|
|
43
44
|
)
|
|
44
45
|
}
|
|
@@ -7,5 +7,7 @@ export type ChangeEventPayload = {
|
|
|
7
7
|
frequency: number;
|
|
8
8
|
/** Offset from perfect pitch as percentage (-50 to +50, negative = flat, positive = sharp) */
|
|
9
9
|
offset: number;
|
|
10
|
+
/** Signal amplitude in dB SPL (approximate) */
|
|
11
|
+
amplitude: number;
|
|
10
12
|
};
|
|
11
13
|
//# sourceMappingURL=ReactNativeSimpleNotePitchDetector.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeSimpleNotePitchDetector.types.d.ts","sourceRoot":"","sources":["../src/ReactNativeSimpleNotePitchDetector.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,8FAA8F;IAC9F,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ReactNativeSimpleNotePitchDetector.types.d.ts","sourceRoot":"","sources":["../src/ReactNativeSimpleNotePitchDetector.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,8FAA8F;IAC9F,MAAM,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeSimpleNotePitchDetector.types.js","sourceRoot":"","sources":["../src/ReactNativeSimpleNotePitchDetector.types.ts"],"names":[],"mappings":"","sourcesContent":["export type ChangeEventPayload = {\n /** Note name without octave (e.g., \"C#\", \"D\", \"Eb\") */\n note: string;\n /** Octave number (e.g., 4 for middle C) */\n octave: number;\n /** Raw frequency in Hz */\n frequency: number;\n /** Offset from perfect pitch as percentage (-50 to +50, negative = flat, positive = sharp) */\n offset: number;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"ReactNativeSimpleNotePitchDetector.types.js","sourceRoot":"","sources":["../src/ReactNativeSimpleNotePitchDetector.types.ts"],"names":[],"mappings":"","sourcesContent":["export type ChangeEventPayload = {\n /** Note name without octave (e.g., \"C#\", \"D\", \"Eb\") */\n note: string;\n /** Octave number (e.g., 4 for middle C) */\n octave: number;\n /** Raw frequency in Hz */\n frequency: number;\n /** Offset from perfect pitch as percentage (-50 to +50, negative = flat, positive = sharp) */\n offset: number;\n /** Signal amplitude in dB SPL (approximate) */\n amplitude: number;\n};\n"]}
|
package/package.json
CHANGED