smule.js 1.0.2 → 1.0.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/dist/index.cjs CHANGED
@@ -34,6 +34,7 @@ __export(index_exports, {
34
34
  Smule: () => Smule,
35
35
  SmuleErrorCode: () => SmuleErrorCode,
36
36
  SmuleSession: () => SmuleSession,
37
+ SmuleUserSinging: () => SmuleUserSinging,
37
38
  SmuleUtil: () => SmuleUtil,
38
39
  Util: () => Util
39
40
  });
@@ -1757,20 +1758,24 @@ var SmuleAudio;
1757
1758
 
1758
1759
  // src/smule-midi.ts
1759
1760
  var midiParser = __toESM(require("midi-file"), 1);
1761
+
1762
+ // src/smule-midi-types.ts
1763
+ var SmuleUserSinging = /* @__PURE__ */ ((SmuleUserSinging2) => {
1764
+ SmuleUserSinging2[SmuleUserSinging2["BOTH"] = 0] = "BOTH";
1765
+ SmuleUserSinging2[SmuleUserSinging2["PART_ONE"] = 1] = "PART_ONE";
1766
+ SmuleUserSinging2[SmuleUserSinging2["PART_TWO"] = 2] = "PART_TWO";
1767
+ SmuleUserSinging2[SmuleUserSinging2["PART_THREE"] = 3] = "PART_THREE";
1768
+ SmuleUserSinging2[SmuleUserSinging2["PART_FOUR"] = 4] = "PART_FOUR";
1769
+ SmuleUserSinging2[SmuleUserSinging2["PART_FIVE"] = 5] = "PART_FIVE";
1770
+ SmuleUserSinging2[SmuleUserSinging2["PART_SIX"] = 6] = "PART_SIX";
1771
+ SmuleUserSinging2[SmuleUserSinging2["PART_SEVEN"] = 7] = "PART_SEVEN";
1772
+ SmuleUserSinging2[SmuleUserSinging2["PART_EIGHT"] = 8] = "PART_EIGHT";
1773
+ return SmuleUserSinging2;
1774
+ })(SmuleUserSinging || {});
1775
+
1776
+ // src/smule-midi.ts
1760
1777
  var SmuleMIDI;
1761
1778
  ((SmuleMIDI2) => {
1762
- let SmuleUserSinging;
1763
- ((SmuleUserSinging2) => {
1764
- SmuleUserSinging2[SmuleUserSinging2["BOTH"] = 0] = "BOTH";
1765
- SmuleUserSinging2[SmuleUserSinging2["PART_ONE"] = 1] = "PART_ONE";
1766
- SmuleUserSinging2[SmuleUserSinging2["PART_TWO"] = 2] = "PART_TWO";
1767
- SmuleUserSinging2[SmuleUserSinging2["PART_THREE"] = 3] = "PART_THREE";
1768
- SmuleUserSinging2[SmuleUserSinging2["PART_FOUR"] = 4] = "PART_FOUR";
1769
- SmuleUserSinging2[SmuleUserSinging2["PART_FIVE"] = 5] = "PART_FIVE";
1770
- SmuleUserSinging2[SmuleUserSinging2["PART_SIX"] = 6] = "PART_SIX";
1771
- SmuleUserSinging2[SmuleUserSinging2["PART_SEVEN"] = 7] = "PART_SEVEN";
1772
- SmuleUserSinging2[SmuleUserSinging2["PART_EIGHT"] = 8] = "PART_EIGHT";
1773
- })(SmuleUserSinging = SmuleMIDI2.SmuleUserSinging || (SmuleMIDI2.SmuleUserSinging = {}));
1774
1779
  function cleanLyric(lyric, isSyllable = false) {
1775
1780
  lyric = Buffer.from(lyric, "ascii").toString("utf-8");
1776
1781
  if (isSyllable) return lyric;
@@ -4112,6 +4117,7 @@ var Smule = class {
4112
4117
  Smule,
4113
4118
  SmuleErrorCode,
4114
4119
  SmuleSession,
4120
+ SmuleUserSinging,
4115
4121
  SmuleUtil,
4116
4122
  Util
4117
4123
  });
package/dist/index.d.cts CHANGED
@@ -2,6 +2,50 @@ import { AxiosResponse } from 'axios';
2
2
  import EventEmitter from 'events';
3
3
  import { JID } from '@xmpp/jid';
4
4
 
5
+ declare enum SmuleUserSinging {
6
+ BOTH = 0,
7
+ PART_ONE = 1,
8
+ PART_TWO = 2,
9
+ PART_THREE = 3,
10
+ PART_FOUR = 4,
11
+ PART_FIVE = 5,
12
+ PART_SIX = 6,
13
+ PART_SEVEN = 7,
14
+ PART_EIGHT = 8
15
+ }
16
+ type SmuleSyllable = {
17
+ text: string;
18
+ startTime: number;
19
+ endTime: number;
20
+ };
21
+ type SmuleLyric = {
22
+ text: Array<SmuleSyllable>;
23
+ startTime: number;
24
+ endTime: number;
25
+ part: SmuleUserSinging;
26
+ };
27
+ type SmuleMidiData = {
28
+ lyrics: Array<SmuleLyric>;
29
+ pitches: SmulePitchesData;
30
+ isSyllable: boolean;
31
+ type: "RAVEN" | "COMMUNITY";
32
+ };
33
+ type SmuleLyricsData = {
34
+ lyrics: Array<SmuleLyric>;
35
+ isSyllable: boolean;
36
+ };
37
+ type SmulePitch = {
38
+ noteNumber: number;
39
+ startTime: number;
40
+ endTime: number;
41
+ part: SmuleUserSinging | number;
42
+ };
43
+ type SmulePitchesData = {
44
+ pitches: SmulePitch[];
45
+ largestNote: number;
46
+ smallestNote: number;
47
+ };
48
+
5
49
  type SmuleMessage = {
6
50
  content: string;
7
51
  sender: number;
@@ -1706,54 +1750,6 @@ declare class SmuleLiveChat {
1706
1750
  private _error;
1707
1751
  }
1708
1752
 
1709
- declare namespace SmuleMIDI {
1710
- enum SmuleUserSinging {
1711
- BOTH = 0,
1712
- PART_ONE = 1,
1713
- PART_TWO = 2,
1714
- PART_THREE = 3,
1715
- PART_FOUR = 4,
1716
- PART_FIVE = 5,
1717
- PART_SIX = 6,
1718
- PART_SEVEN = 7,
1719
- PART_EIGHT = 8
1720
- }
1721
- type SmuleSyllable = {
1722
- text: string;
1723
- startTime: number;
1724
- endTime: number;
1725
- };
1726
- type SmuleLyric = {
1727
- text: Array<SmuleSyllable>;
1728
- startTime: number;
1729
- endTime: number;
1730
- part: SmuleUserSinging;
1731
- };
1732
- type SmuleMidiData = {
1733
- lyrics: Array<SmuleLyric>;
1734
- pitches: SmulePitchesData;
1735
- isSyllable: boolean;
1736
- type: "RAVEN" | "COMMUNITY";
1737
- };
1738
- type SmuleLyricsData = {
1739
- lyrics: Array<SmuleLyric>;
1740
- isSyllable: boolean;
1741
- };
1742
- type SmulePitch = {
1743
- noteNumber: number;
1744
- startTime: number;
1745
- endTime: number;
1746
- part: SmuleUserSinging | number;
1747
- };
1748
- type SmulePitchesData = {
1749
- pitches: SmulePitch[];
1750
- largestNote: number;
1751
- smallestNote: number;
1752
- };
1753
- function fetchPitchesFromMIDI(midi: Uint8Array, lyrics: SmuleLyric[]): SmulePitchesData;
1754
- function fetchLyricsFromMIDI(midi: Uint8Array): SmuleMidiData;
1755
- }
1756
-
1757
1753
  declare class SmuleChat {
1758
1754
  events: EventEmitter;
1759
1755
  state: SmuleChatState;
@@ -2269,8 +2265,8 @@ declare class Smule {
2269
2265
  * @returns The lyrics, their type, and the pitches
2270
2266
  */
2271
2267
  fetchLyricsAndPitches: (key: string) => Promise<{
2272
- lyrics: SmuleMIDI.SmuleLyric[];
2273
- pitches: SmuleMIDI.SmulePitchesData;
2268
+ lyrics: SmuleLyric[];
2269
+ pitches: SmulePitchesData;
2274
2270
  type: "RAVEN" | "COMMUNITY";
2275
2271
  }>;
2276
2272
  /**
@@ -2617,4 +2613,4 @@ declare class Smule {
2617
2613
  };
2618
2614
  }
2619
2615
 
2620
- export { type AccessTokenResult, type AccountExploreResult, type AccountIcon, type ApiResponse, type Arr, type ArrByKeysResult, type ArrExtended, type ArrResult, type AutocompleteResult, type AvTemplateCategoryListResult, type AvTemplateLite, type Banner, type BannersResult, type BlockListResult, type Campfire, type CampfireExploreResult, type CampfirePlayStream, type CampfireSyncResult, type CategoryListResult, type CategorySongsResult, type Comment, type CommentLikesResult, type Cursor, CustomFormData, type DeviceSetResult, type EnsembleType, type FeedItem, type FolloweeResult, type FollowersResult, type FollowingResult, type GiftIcon, type GiftsResult, type InviteListResult, type InviteMeResult, type ListEntitlementsResult, type LoginAsGuestResult, type LoginInfoResult, type LoginResult, type ParticipationIcon, type PerformanceByKeysResult, type PerformanceCommentsResult, type PerformanceCreateCommentResult, type PerformanceCreateResult, type PerformanceDetail, type PerformanceDetailsResult, type PerformanceIcon, type PerformanceList, type PerformancePartsResult, PerformanceReq, type PerformanceResult, type PerformanceSortMethod, type PerformancesByAvTemplateResult, type PerformancesByUserResult, type PerformancesFillStatus, type PerformancesSortOrder, type Playlist, type PlaylistDetailed, type PlaylistExploreResult, type PlaylistGetResult, type PreferancesResult, type PreuploadResult, type Profile, type ProfileResult, type ProfileViewsResult, type RecAccount, type RecAccountsResult, type RecPerformanceIcon, type SFAM, type SFAMExploreResult, type SFAMList, type SMULE_APP, type SearchResult, type SearchResultCategory, type SearchResultSort, type SearchResultType, type SettingsResult, type SingProfile, Smule, SmuleErrorCode, SmuleSession, SmuleUtil, type SocialBlockListResult, type SocialFeedListResult, type SocialInvite, type SocialInvite2, type Song, type SongCategory, type SongbookResult, type StoreSubscriptionStatus, type TippingHandleType, type TrendingSearch, type TrendingSearchResult, type UserTippingPref, type UserTippingProvider, type UsersLookupResult, Util, type Wallet, type WalletResult, type appFamily, type avTmplSegment, type campfire_audioFilters, type campfire_avStreamQuality, type campfire_config, type dfp, type links, type sing_acappella, type sing_appLaunch, type sing_appSettings, type sing_arr, type sing_audio, type sing_audioFilters, type sing_avqSurvey, type sing_banners, type sing_boost, type sing_cccp, type sing_chat, type sing_crm, type sing_explore, type sing_families, type sing_feed, type sing_findFriendsModule, type sing_freeform, type sing_google_ads, type sing_google_buy_msg, type sing_google_cccp, type sing_google_explore, type sing_google_ftuxBlocking, type sing_google_mediaPlayer, type sing_google_preSing, type sing_google_smeaks, type sing_google_songUpsell, type sing_google_songbook, type sing_google_stream_values, type sing_google_subscriptions, type sing_google_tutorial, type sing_localization, type sing_notifications, type sing_nowPlaying, type sing_onboarding, type sing_paywall, type sing_playlists, type sing_profile, type sing_registration, type sing_search, type sing_seeds, type sing_share, type sing_shortJoins, type sing_singingFlow, type sing_songbookUsability, type sing_templates, type sing_tipping, type sing_topics, type sing_upload, type sing_vcs, type sing_video, type sing_videoEncoding, type sing_videoFX, type sing_videoStyles, type sing_virtualCurrency };
2616
+ export { type AccessTokenResult, type AccountExploreResult, type AccountIcon, type ApiResponse, type Arr, type ArrByKeysResult, type ArrExtended, type ArrResult, type AutocompleteResult, type AvTemplateCategoryListResult, type AvTemplateLite, type Banner, type BannersResult, type BlockListResult, type Campfire, type CampfireExploreResult, type CampfirePlayStream, type CampfireSyncResult, type CategoryListResult, type CategorySongsResult, type Comment, type CommentLikesResult, type Cursor, CustomFormData, type DeviceSetResult, type EnsembleType, type FeedItem, type FolloweeResult, type FollowersResult, type FollowingResult, type GiftIcon, type GiftsResult, type InviteListResult, type InviteMeResult, type ListEntitlementsResult, type LoginAsGuestResult, type LoginInfoResult, type LoginResult, type ParticipationIcon, type PerformanceByKeysResult, type PerformanceCommentsResult, type PerformanceCreateCommentResult, type PerformanceCreateResult, type PerformanceDetail, type PerformanceDetailsResult, type PerformanceIcon, type PerformanceList, type PerformancePartsResult, PerformanceReq, type PerformanceResult, type PerformanceSortMethod, type PerformancesByAvTemplateResult, type PerformancesByUserResult, type PerformancesFillStatus, type PerformancesSortOrder, type Playlist, type PlaylistDetailed, type PlaylistExploreResult, type PlaylistGetResult, type PreferancesResult, type PreuploadResult, type Profile, type ProfileResult, type ProfileViewsResult, type RecAccount, type RecAccountsResult, type RecPerformanceIcon, type SFAM, type SFAMExploreResult, type SFAMList, type SMULE_APP, type SearchResult, type SearchResultCategory, type SearchResultSort, type SearchResultType, type SettingsResult, type SingProfile, Smule, type SmuleChatContainer, type SmuleChatState, SmuleErrorCode, type SmuleLyric, type SmuleLyricsData, type SmuleMessage, type SmuleMidiData, type SmulePartnerStatus, type SmulePitch, type SmulePitchesData, SmuleSession, type SmuleSyllable, SmuleUserSinging, SmuleUtil, type SocialBlockListResult, type SocialFeedListResult, type SocialInvite, type SocialInvite2, type Song, type SongCategory, type SongbookResult, type StoreSubscriptionStatus, type TippingHandleType, type TrendingSearch, type TrendingSearchResult, type UserTippingPref, type UserTippingProvider, type UsersLookupResult, Util, type Wallet, type WalletResult, type appFamily, type avTmplSegment, type campfire_audioFilters, type campfire_avStreamQuality, type campfire_config, type dfp, type links, type sing_acappella, type sing_appLaunch, type sing_appSettings, type sing_arr, type sing_audio, type sing_audioFilters, type sing_avqSurvey, type sing_banners, type sing_boost, type sing_cccp, type sing_chat, type sing_crm, type sing_explore, type sing_families, type sing_feed, type sing_findFriendsModule, type sing_freeform, type sing_google_ads, type sing_google_buy_msg, type sing_google_cccp, type sing_google_explore, type sing_google_ftuxBlocking, type sing_google_mediaPlayer, type sing_google_preSing, type sing_google_smeaks, type sing_google_songUpsell, type sing_google_songbook, type sing_google_stream_values, type sing_google_subscriptions, type sing_google_tutorial, type sing_localization, type sing_notifications, type sing_nowPlaying, type sing_onboarding, type sing_paywall, type sing_playlists, type sing_profile, type sing_registration, type sing_search, type sing_seeds, type sing_share, type sing_shortJoins, type sing_singingFlow, type sing_songbookUsability, type sing_templates, type sing_tipping, type sing_topics, type sing_upload, type sing_vcs, type sing_video, type sing_videoEncoding, type sing_videoFX, type sing_videoStyles, type sing_virtualCurrency };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,50 @@ import { AxiosResponse } from 'axios';
2
2
  import EventEmitter from 'events';
3
3
  import { JID } from '@xmpp/jid';
4
4
 
5
+ declare enum SmuleUserSinging {
6
+ BOTH = 0,
7
+ PART_ONE = 1,
8
+ PART_TWO = 2,
9
+ PART_THREE = 3,
10
+ PART_FOUR = 4,
11
+ PART_FIVE = 5,
12
+ PART_SIX = 6,
13
+ PART_SEVEN = 7,
14
+ PART_EIGHT = 8
15
+ }
16
+ type SmuleSyllable = {
17
+ text: string;
18
+ startTime: number;
19
+ endTime: number;
20
+ };
21
+ type SmuleLyric = {
22
+ text: Array<SmuleSyllable>;
23
+ startTime: number;
24
+ endTime: number;
25
+ part: SmuleUserSinging;
26
+ };
27
+ type SmuleMidiData = {
28
+ lyrics: Array<SmuleLyric>;
29
+ pitches: SmulePitchesData;
30
+ isSyllable: boolean;
31
+ type: "RAVEN" | "COMMUNITY";
32
+ };
33
+ type SmuleLyricsData = {
34
+ lyrics: Array<SmuleLyric>;
35
+ isSyllable: boolean;
36
+ };
37
+ type SmulePitch = {
38
+ noteNumber: number;
39
+ startTime: number;
40
+ endTime: number;
41
+ part: SmuleUserSinging | number;
42
+ };
43
+ type SmulePitchesData = {
44
+ pitches: SmulePitch[];
45
+ largestNote: number;
46
+ smallestNote: number;
47
+ };
48
+
5
49
  type SmuleMessage = {
6
50
  content: string;
7
51
  sender: number;
@@ -1706,54 +1750,6 @@ declare class SmuleLiveChat {
1706
1750
  private _error;
1707
1751
  }
1708
1752
 
1709
- declare namespace SmuleMIDI {
1710
- enum SmuleUserSinging {
1711
- BOTH = 0,
1712
- PART_ONE = 1,
1713
- PART_TWO = 2,
1714
- PART_THREE = 3,
1715
- PART_FOUR = 4,
1716
- PART_FIVE = 5,
1717
- PART_SIX = 6,
1718
- PART_SEVEN = 7,
1719
- PART_EIGHT = 8
1720
- }
1721
- type SmuleSyllable = {
1722
- text: string;
1723
- startTime: number;
1724
- endTime: number;
1725
- };
1726
- type SmuleLyric = {
1727
- text: Array<SmuleSyllable>;
1728
- startTime: number;
1729
- endTime: number;
1730
- part: SmuleUserSinging;
1731
- };
1732
- type SmuleMidiData = {
1733
- lyrics: Array<SmuleLyric>;
1734
- pitches: SmulePitchesData;
1735
- isSyllable: boolean;
1736
- type: "RAVEN" | "COMMUNITY";
1737
- };
1738
- type SmuleLyricsData = {
1739
- lyrics: Array<SmuleLyric>;
1740
- isSyllable: boolean;
1741
- };
1742
- type SmulePitch = {
1743
- noteNumber: number;
1744
- startTime: number;
1745
- endTime: number;
1746
- part: SmuleUserSinging | number;
1747
- };
1748
- type SmulePitchesData = {
1749
- pitches: SmulePitch[];
1750
- largestNote: number;
1751
- smallestNote: number;
1752
- };
1753
- function fetchPitchesFromMIDI(midi: Uint8Array, lyrics: SmuleLyric[]): SmulePitchesData;
1754
- function fetchLyricsFromMIDI(midi: Uint8Array): SmuleMidiData;
1755
- }
1756
-
1757
1753
  declare class SmuleChat {
1758
1754
  events: EventEmitter;
1759
1755
  state: SmuleChatState;
@@ -2269,8 +2265,8 @@ declare class Smule {
2269
2265
  * @returns The lyrics, their type, and the pitches
2270
2266
  */
2271
2267
  fetchLyricsAndPitches: (key: string) => Promise<{
2272
- lyrics: SmuleMIDI.SmuleLyric[];
2273
- pitches: SmuleMIDI.SmulePitchesData;
2268
+ lyrics: SmuleLyric[];
2269
+ pitches: SmulePitchesData;
2274
2270
  type: "RAVEN" | "COMMUNITY";
2275
2271
  }>;
2276
2272
  /**
@@ -2617,4 +2613,4 @@ declare class Smule {
2617
2613
  };
2618
2614
  }
2619
2615
 
2620
- export { type AccessTokenResult, type AccountExploreResult, type AccountIcon, type ApiResponse, type Arr, type ArrByKeysResult, type ArrExtended, type ArrResult, type AutocompleteResult, type AvTemplateCategoryListResult, type AvTemplateLite, type Banner, type BannersResult, type BlockListResult, type Campfire, type CampfireExploreResult, type CampfirePlayStream, type CampfireSyncResult, type CategoryListResult, type CategorySongsResult, type Comment, type CommentLikesResult, type Cursor, CustomFormData, type DeviceSetResult, type EnsembleType, type FeedItem, type FolloweeResult, type FollowersResult, type FollowingResult, type GiftIcon, type GiftsResult, type InviteListResult, type InviteMeResult, type ListEntitlementsResult, type LoginAsGuestResult, type LoginInfoResult, type LoginResult, type ParticipationIcon, type PerformanceByKeysResult, type PerformanceCommentsResult, type PerformanceCreateCommentResult, type PerformanceCreateResult, type PerformanceDetail, type PerformanceDetailsResult, type PerformanceIcon, type PerformanceList, type PerformancePartsResult, PerformanceReq, type PerformanceResult, type PerformanceSortMethod, type PerformancesByAvTemplateResult, type PerformancesByUserResult, type PerformancesFillStatus, type PerformancesSortOrder, type Playlist, type PlaylistDetailed, type PlaylistExploreResult, type PlaylistGetResult, type PreferancesResult, type PreuploadResult, type Profile, type ProfileResult, type ProfileViewsResult, type RecAccount, type RecAccountsResult, type RecPerformanceIcon, type SFAM, type SFAMExploreResult, type SFAMList, type SMULE_APP, type SearchResult, type SearchResultCategory, type SearchResultSort, type SearchResultType, type SettingsResult, type SingProfile, Smule, SmuleErrorCode, SmuleSession, SmuleUtil, type SocialBlockListResult, type SocialFeedListResult, type SocialInvite, type SocialInvite2, type Song, type SongCategory, type SongbookResult, type StoreSubscriptionStatus, type TippingHandleType, type TrendingSearch, type TrendingSearchResult, type UserTippingPref, type UserTippingProvider, type UsersLookupResult, Util, type Wallet, type WalletResult, type appFamily, type avTmplSegment, type campfire_audioFilters, type campfire_avStreamQuality, type campfire_config, type dfp, type links, type sing_acappella, type sing_appLaunch, type sing_appSettings, type sing_arr, type sing_audio, type sing_audioFilters, type sing_avqSurvey, type sing_banners, type sing_boost, type sing_cccp, type sing_chat, type sing_crm, type sing_explore, type sing_families, type sing_feed, type sing_findFriendsModule, type sing_freeform, type sing_google_ads, type sing_google_buy_msg, type sing_google_cccp, type sing_google_explore, type sing_google_ftuxBlocking, type sing_google_mediaPlayer, type sing_google_preSing, type sing_google_smeaks, type sing_google_songUpsell, type sing_google_songbook, type sing_google_stream_values, type sing_google_subscriptions, type sing_google_tutorial, type sing_localization, type sing_notifications, type sing_nowPlaying, type sing_onboarding, type sing_paywall, type sing_playlists, type sing_profile, type sing_registration, type sing_search, type sing_seeds, type sing_share, type sing_shortJoins, type sing_singingFlow, type sing_songbookUsability, type sing_templates, type sing_tipping, type sing_topics, type sing_upload, type sing_vcs, type sing_video, type sing_videoEncoding, type sing_videoFX, type sing_videoStyles, type sing_virtualCurrency };
2616
+ export { type AccessTokenResult, type AccountExploreResult, type AccountIcon, type ApiResponse, type Arr, type ArrByKeysResult, type ArrExtended, type ArrResult, type AutocompleteResult, type AvTemplateCategoryListResult, type AvTemplateLite, type Banner, type BannersResult, type BlockListResult, type Campfire, type CampfireExploreResult, type CampfirePlayStream, type CampfireSyncResult, type CategoryListResult, type CategorySongsResult, type Comment, type CommentLikesResult, type Cursor, CustomFormData, type DeviceSetResult, type EnsembleType, type FeedItem, type FolloweeResult, type FollowersResult, type FollowingResult, type GiftIcon, type GiftsResult, type InviteListResult, type InviteMeResult, type ListEntitlementsResult, type LoginAsGuestResult, type LoginInfoResult, type LoginResult, type ParticipationIcon, type PerformanceByKeysResult, type PerformanceCommentsResult, type PerformanceCreateCommentResult, type PerformanceCreateResult, type PerformanceDetail, type PerformanceDetailsResult, type PerformanceIcon, type PerformanceList, type PerformancePartsResult, PerformanceReq, type PerformanceResult, type PerformanceSortMethod, type PerformancesByAvTemplateResult, type PerformancesByUserResult, type PerformancesFillStatus, type PerformancesSortOrder, type Playlist, type PlaylistDetailed, type PlaylistExploreResult, type PlaylistGetResult, type PreferancesResult, type PreuploadResult, type Profile, type ProfileResult, type ProfileViewsResult, type RecAccount, type RecAccountsResult, type RecPerformanceIcon, type SFAM, type SFAMExploreResult, type SFAMList, type SMULE_APP, type SearchResult, type SearchResultCategory, type SearchResultSort, type SearchResultType, type SettingsResult, type SingProfile, Smule, type SmuleChatContainer, type SmuleChatState, SmuleErrorCode, type SmuleLyric, type SmuleLyricsData, type SmuleMessage, type SmuleMidiData, type SmulePartnerStatus, type SmulePitch, type SmulePitchesData, SmuleSession, type SmuleSyllable, SmuleUserSinging, SmuleUtil, type SocialBlockListResult, type SocialFeedListResult, type SocialInvite, type SocialInvite2, type Song, type SongCategory, type SongbookResult, type StoreSubscriptionStatus, type TippingHandleType, type TrendingSearch, type TrendingSearchResult, type UserTippingPref, type UserTippingProvider, type UsersLookupResult, Util, type Wallet, type WalletResult, type appFamily, type avTmplSegment, type campfire_audioFilters, type campfire_avStreamQuality, type campfire_config, type dfp, type links, type sing_acappella, type sing_appLaunch, type sing_appSettings, type sing_arr, type sing_audio, type sing_audioFilters, type sing_avqSurvey, type sing_banners, type sing_boost, type sing_cccp, type sing_chat, type sing_crm, type sing_explore, type sing_families, type sing_feed, type sing_findFriendsModule, type sing_freeform, type sing_google_ads, type sing_google_buy_msg, type sing_google_cccp, type sing_google_explore, type sing_google_ftuxBlocking, type sing_google_mediaPlayer, type sing_google_preSing, type sing_google_smeaks, type sing_google_songUpsell, type sing_google_songbook, type sing_google_stream_values, type sing_google_subscriptions, type sing_google_tutorial, type sing_localization, type sing_notifications, type sing_nowPlaying, type sing_onboarding, type sing_paywall, type sing_playlists, type sing_profile, type sing_registration, type sing_search, type sing_seeds, type sing_share, type sing_shortJoins, type sing_singingFlow, type sing_songbookUsability, type sing_templates, type sing_tipping, type sing_topics, type sing_upload, type sing_vcs, type sing_video, type sing_videoEncoding, type sing_videoFX, type sing_videoStyles, type sing_virtualCurrency };
package/dist/index.js CHANGED
@@ -1716,20 +1716,24 @@ var SmuleAudio;
1716
1716
 
1717
1717
  // src/smule-midi.ts
1718
1718
  import * as midiParser from "midi-file";
1719
+
1720
+ // src/smule-midi-types.ts
1721
+ var SmuleUserSinging = /* @__PURE__ */ ((SmuleUserSinging2) => {
1722
+ SmuleUserSinging2[SmuleUserSinging2["BOTH"] = 0] = "BOTH";
1723
+ SmuleUserSinging2[SmuleUserSinging2["PART_ONE"] = 1] = "PART_ONE";
1724
+ SmuleUserSinging2[SmuleUserSinging2["PART_TWO"] = 2] = "PART_TWO";
1725
+ SmuleUserSinging2[SmuleUserSinging2["PART_THREE"] = 3] = "PART_THREE";
1726
+ SmuleUserSinging2[SmuleUserSinging2["PART_FOUR"] = 4] = "PART_FOUR";
1727
+ SmuleUserSinging2[SmuleUserSinging2["PART_FIVE"] = 5] = "PART_FIVE";
1728
+ SmuleUserSinging2[SmuleUserSinging2["PART_SIX"] = 6] = "PART_SIX";
1729
+ SmuleUserSinging2[SmuleUserSinging2["PART_SEVEN"] = 7] = "PART_SEVEN";
1730
+ SmuleUserSinging2[SmuleUserSinging2["PART_EIGHT"] = 8] = "PART_EIGHT";
1731
+ return SmuleUserSinging2;
1732
+ })(SmuleUserSinging || {});
1733
+
1734
+ // src/smule-midi.ts
1719
1735
  var SmuleMIDI;
1720
1736
  ((SmuleMIDI2) => {
1721
- let SmuleUserSinging;
1722
- ((SmuleUserSinging2) => {
1723
- SmuleUserSinging2[SmuleUserSinging2["BOTH"] = 0] = "BOTH";
1724
- SmuleUserSinging2[SmuleUserSinging2["PART_ONE"] = 1] = "PART_ONE";
1725
- SmuleUserSinging2[SmuleUserSinging2["PART_TWO"] = 2] = "PART_TWO";
1726
- SmuleUserSinging2[SmuleUserSinging2["PART_THREE"] = 3] = "PART_THREE";
1727
- SmuleUserSinging2[SmuleUserSinging2["PART_FOUR"] = 4] = "PART_FOUR";
1728
- SmuleUserSinging2[SmuleUserSinging2["PART_FIVE"] = 5] = "PART_FIVE";
1729
- SmuleUserSinging2[SmuleUserSinging2["PART_SIX"] = 6] = "PART_SIX";
1730
- SmuleUserSinging2[SmuleUserSinging2["PART_SEVEN"] = 7] = "PART_SEVEN";
1731
- SmuleUserSinging2[SmuleUserSinging2["PART_EIGHT"] = 8] = "PART_EIGHT";
1732
- })(SmuleUserSinging = SmuleMIDI2.SmuleUserSinging || (SmuleMIDI2.SmuleUserSinging = {}));
1733
1737
  function cleanLyric(lyric, isSyllable = false) {
1734
1738
  lyric = Buffer.from(lyric, "ascii").toString("utf-8");
1735
1739
  if (isSyllable) return lyric;
@@ -4070,6 +4074,7 @@ export {
4070
4074
  Smule,
4071
4075
  SmuleErrorCode,
4072
4076
  SmuleSession,
4077
+ SmuleUserSinging,
4073
4078
  SmuleUtil,
4074
4079
  Util
4075
4080
  };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/michei69"
8
8
  },
9
9
  "license": "MIT",
10
- "version": "1.0.2",
10
+ "version": "1.0.3",
11
11
  "scripts": {
12
12
  "build": "tsup src/index.ts --format cjs,esm --dts --clean",
13
13
  "dev": "tsup src/index.ts --format esm --watch --dts",